Change RSpec configuration alias

In RSpec, v2.8, RSpec::Core::Configuration#alias_it_behaves_like_to
does not exist. This method is introduced in later versions. Instead,
use RSpec::Core::Configuration#alias_it_should_behave_like_to.
This commit is contained in:
Kevin Sjöberg 2013-02-06 14:15:05 +01:00
parent 53ef01b9e6
commit 8501b983d6
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ Sham.define do
end
RSpec.configure do |config|
config.alias_it_behaves_like_to :it_has_behavior, 'has behavior'
config.alias_it_should_behave_like_to :it_has_behavior, 'has behavior'
config.before(:suite) do
puts '=' * 80