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