When I ran my first test in RSpec I got 9 deprecations it then suggested I add the code below to spec_helper.rb which I did and it reduced the deprecations by 2 to 7.
RSpec.configure do |c|
c.expose_current_running_example_as :example
end
The deprecation warnings that remain are as follows:
RSpec.configure do |c| c.expose_current_running_example_as :example end
I did some searches here, on google and tried to look at the rspec documentation but could not find anything that really helped me. So my questions are:
- What does a deprecation really mean? It's clearly not an error. I think it is the difference between two versions of rspec?
- How do I get rid of them, the text in the deprecation warning is not really very helpful. I think trying to update rspec could help? But I am concerned to try in case it makes things worse.
Any help would be greatly appreciated!
stub_model
is deprecated. Use therspec-activemodel-mocks
gem instead. Called from /Users/alexbromage/Documents/Projects/odot/spec/views/todo_lists/new.html.erb_spec.rb:5:in `block (2 levels) in <top (required)>'. – theoneinskaneRSpec::Core::ExampleGroup.pending
are changing in RSpec 3. – theoneinskane