spec/concerns/breifly_memoizable_spec.rb in frenetic-0.0.20.alpha.3 vs spec/concerns/breifly_memoizable_spec.rb in frenetic-0.0.20.alpha.4
- old
+ new
@@ -51,9 +51,19 @@
it 'should not be called' do
instance.should_receive(:external_call).never.and_call_original
instance.fetch
end
+
+ context 'after it has been reloaded' do
+ before { instance.reload_fetch! }
+
+ it 'should be called' do
+ instance.should_receive(:external_call).once.and_call_original
+
+ instance.fetch
+ end
+ end
end
end
end
end
\ No newline at end of file