Rails 3 / Rspec 2 / Remarkable 3.1 - matchers STILL not working

58 views
Skip to first unread message

Asfand Yar Qazi

unread,
Mar 22, 2011, 11:19:25 AM3/22/11
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.......

Ho-Sheng Hsiao

unread,
Apr 20, 2011, 3:44:12 PM4/20/11
to Remarkable

Remarkable 3.x will never work with Rails 3 and Rspec 2. There are no
plans for it. You need to use the pre-release version of Remarkable 4
(gem install remarkable --pre).

Ho-Sheng Hsiao
Reply all
Reply to author
Forward
0 new messages