Sha256: b0554932dd83625bcdef837a5260d98ce79e6d9b825c723fbb878a1375a31f58
Contents?: true
Size: 461 Bytes
Versions: 7
Compression:
Stored size: 461 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 old = Interpret.backend Interpret.backend = backend Interpret::Translation.create! :locale => "en", :key => "en.hello", :value => "Hello world" Interpret.backend = old end end
Version data entries
7 entries across 7 versions & 1 rubygems