Reputation: 1193
I followed the tutorial at http://guides.rubyonrails.org/getting_started.html with scaffolding and added rspec. I didn't add any special code so far.
When doing...
rake spec
... I get around 20 of the following warnings:
DEPRECATION WARNING: The InstanceMethods module inside ActiveSupport::Concern will be no longer included automatically. Please define instance methods directly in RSpec::Rails::ViewExampleGroup instead. (called from at /Users/pixtur/Projects/website-com/spec/views/welcome/index.html.haml_spec.rb:3)
I don't understand, what this error is trying to tell me. index.html.haml_spec.rb
was created by scaffolding and looks like this:
require 'spec_helper'
describe "welcome/index.html.haml" do
pending "add some examples to (or delete) #{__FILE__}"
end
I'm using rails 3.2.3 / ruby 1.9.2
I have to following gems installed:
actionmailer (3.2.3)
actionpack (3.2.3)
Any help on how to get rid of the warning are strongly welcome.
Upvotes: 2
Views: 1778
Reputation: 1193
The warnings vanished after upgrading to the latest versions of rspec:
rspec (2.10.0) rspec-core (2.10.1) rspec-expectations (2.10.0) rspec-mocks (2.10.1) rspec-rails (2.10.1)
Upvotes: 7