Asfand Yar Qazi
unread,Mar 22, 2011, 11:19:25 AM3/22/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Remarkable
Hi,
I've found numerous posts about people having problems with remarkable
matchers not showing up in their specs. Some of these are from 2010
and before.......
This is quite concerning...... Now it is March 2011, and I STILL
cannot access the remarkable matchers from my tests.
Gemfile:
group :development, :test do
gem 'rspec-rails', '~> 2.5', :require => false
gem 'mocha', :require => false
gem 'remarkable_activerecord', '~> 3.1.13', :require => false
end
spec_helper.rb:
require 'rspec/rails'
require 'remarkable_activerecord'
model:
require 'spec_helper'
describe Animal do
it { should validate_presence_of :name }
end
error:
Failures:
1) Animal
Failure/Error: it { should validate_presence_of :name }
NoMethodError:
undefined method `validate_presence_of' for
#<RSpec::Core::ExampleGroup::Nested_1:0x90cea64>
# ./spec/models/animal_spec.rb:4:in `block (2 levels) in <top
(required)>'
HALP! Now I have to use the shoulda matchers.......