# encoding: utf-8

shared_examples_for 'an idempotent method' do
  it 'is idempotent' do
    should equal(instance_eval(&self.class.subject))
  end
end

# encoding: utf-8

shared_examples_for 'an idempotent method' do
  it 'is idempotent' do
    first = subject
    __memoized.delete(:subject)
    should equal(first)
  end
end

Fix "idempotent method" shared example helper
Fix "idempotent method" shared example helper

rspec-2.13.0 changed the way the subject is exposed.
We do not have access to the block anymore.
Need to delete memoized value from the __memoized hash to reset subject.
