df6ccafeab
Needs more specs for sure. Especially edge cases.
9 lines
188 B
Ruby
9 lines
188 B
Ruby
# 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
|