free_mutant/test_app/spec/shared/invertible_method_behaviour.rb

10 lines
188 B
Ruby
Raw Normal View History

2012-11-24 22:41:43 +01:00
# encoding: utf-8
shared_examples_for 'an invertible method' do
it_should_behave_like 'an idempotent method'
it 'is invertible' do
subject.inverse.should equal(object)
end
end