spec/observers/expiration_observer_spec.rb in interpret-0.2.0 vs spec/observers/expiration_observer_spec.rb in interpret-0.2.1
- old
+ new
@@ -8,10 +8,12 @@
end
it "should call run_expiration on observer" do
backend = mock("A backend")
backend.should_receive(:"reload!").once
+ old = Interpret.backend
Interpret.backend = backend
Interpret::Translation.create! :locale => "en", :key => "en.hello", :value => "Hello world"
+ Interpret.backend = old
end
end