I'm trying to make a simple validation, the main issue I thing is the Rails version (I have been using RSpec with Rails 4) because I'm using it with Rails 3.2 and Ruby 1.9.3.
This is the code in my Model
and it return this error
1) Admin::Section is invalid without name Failure/Error: expect(section).to have(1).errors_on(:name) NoMethodError: undefined method `have' for #<RSpec::ExampleGroups::AdminSection:0x007f81cf6e72d0>
My gem list is this
* rspec-core (3.0.1) * rspec-expectations (3.0.1) * rspec-mocks (3.0.1) * rspec-rails (3.0.1) * rspec-support (3.0.0)
I can make it pass with should be_valid but it is deprecated.
If I use have_at_least the error is on errors_on