free_mutant/spec/shared/invertible_method_behaviour.rb

10 lines
188 B
Ruby
Raw Normal View History

# 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