Remarkable + Mongo

11 views
Skip to first unread message

pcg79

unread,
Sep 24, 2010, 5:25:01 PM9/24/10
to Remarkable
First thing which I may be about to make painfully obvious - I'm an
RSpec newbie. I just started a new project using Rails 3, MongoDB,
MongoMapper (Rails3 branch), Rspec 2 (2.0.0.beta.22), Rspec Rails
(2.0.0.beta.22), and Remarkable (4.0.0.alpha4). I did run "rails g
rspec:install" and my simple, non-Remarkable test does pass.

I'm trying to figure out if Remarkable should be working in this
situation or if I'm missing a setup step. Right now when I run my one
simple test:

require 'spec_helper'

describe Person do
it { should validate_presence_of(:email) }
end

produces:

Failures:
1) Person
Failure/Error: it { should validate_presence_of(:email) }
undefined method `validate_presence_of' for
#<RSpec::Core::ExampleGroup::Nested_4:0x00000103705b08>
# ./spec/models/person_spec.rb:4:in `block (2 levels) in <top
(required)>'

I tried installing the Remarkable Mongo gem (http://github.com/
nmerouze/remarkable_mongo) but wasn't able to use any of those macros
either.

Appreciated,

Pat

pcg79

unread,
Sep 27, 2010, 1:14:03 PM9/27/10
to Remarkable
I did figure it out. I was, of course, forgetting to include the
libraries in my spec_helper file.
Reply all
Reply to author
Forward
0 new messages