Sha256: b007e978e30202639e263c240a83426bf14860963ed6db36450fb39d82b5d560
Contents?: true
Size: 791 Bytes
Versions: 26
Compression:
Stored size: 791 Bytes
Contents
require File.expand_path('../spec_helper', __FILE__) module WebTranslateIt class I18n end end describe WebTranslateIt do before(:each) do WebTranslateIt::I18n.stub(:locale => 'en') WebTranslateIt::Configuration::Rails = OpenStruct.new(:root => Pathname.new(File.dirname(__FILE__) + "/examples")) @configuration = WebTranslateIt::Configuration.new @file = mock(WebTranslateIt::TranslationFile) @file.stub(:fetch => true, :locale => true) @configuration.stub(:files => [@file]) WebTranslateIt::Configuration.stub(:new => @configuration) end describe "WebTranslateIt.fetch_translations" do it "should fetch the configuration" do WebTranslateIt::Configuration.should_receive(:new) WebTranslateIt.fetch_translations end end end
Version data entries
26 entries across 26 versions & 1 rubygems