Skip to content

Commit

Permalink
YAML::ENGINE has been removed from Ruby 2.2.
Browse files Browse the repository at this point in the history
  • Loading branch information
myronmarston committed Dec 27, 2014
1 parent 97ceb02 commit 163d600
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/rspec/mocks/serialization_spec.rb
Expand Up @@ -62,10 +62,10 @@ def set_stub
before(:each) { ::YAML::ENGINE.yamler = 'syck' }
around(:each) { |example| with_isolated_stderr(&example) }
it_behaves_like 'normal YAML serialization'
end
end if defined?(::YAML::ENGINE)

context 'using Psych as the YAML engine' do
before(:each) { ::YAML::ENGINE.yamler = 'psych' }
before(:each) { ::YAML::ENGINE.yamler = 'psych' } if defined?(::YAML::ENGINE)
it_behaves_like 'normal YAML serialization'
end
else
Expand Down

0 comments on commit 163d600

Please sign in to comment.