Sha256: b89386b97eb0f350cfb04209e8150efbcc1f099035ca07ea30c26ecf3202bcc3
Contents?: true
Size: 405 Bytes
Versions: 2
Compression:
Stored size: 405 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Interpret::ExpirationObserver do before do Interpret::Translation.delete_all end it "should call run_expiration on observer" do backend = mock("A backend") backend.should_receive(:"reload!").once Interpret.backend = backend Interpret::Translation.create! :locale => "en", :key => "en.hello", :value => "Hello world" end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
interpret-0.2.0 | spec/observers/expiration_observer_spec.rb |
interpret-0.1.5 | spec/observers/expiration_observer_spec.rb |