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

Version Path
web_translate_it-1.10.2 spec/web_translate_it_spec.rb
web_translate_it-1.10.1 spec/web_translate_it_spec.rb
web_translate_it-1.10.0 spec/web_translate_it_spec.rb
web_translate_it-1.9.6 spec/web_translate_it_spec.rb
web_translate_it-1.9.5 spec/web_translate_it_spec.rb
web_translate_it-1.9.4 spec/web_translate_it_spec.rb
web_translate_it-1.9.3 spec/web_translate_it_spec.rb
web_translate_it-1.9.2 spec/web_translate_it_spec.rb
web_translate_it-1.9.1 spec/web_translate_it_spec.rb
web_translate_it-1.9.0 spec/web_translate_it_spec.rb
web_translate_it-1.8.4 spec/web_translate_it_spec.rb
web_translate_it-1.8.3 spec/web_translate_it_spec.rb
web_translate_it-1.8.2.3 spec/web_translate_it_spec.rb
web_translate_it-1.8.2.2 spec/web_translate_it_spec.rb
web_translate_it-1.8.2.1 spec/web_translate_it_spec.rb
web_translate_it-1.8.2.0 spec/web_translate_it_spec.rb
web_translate_it-1.8.1.9 spec/web_translate_it_spec.rb
web_translate_it-1.8.1.8 spec/web_translate_it_spec.rb
web_translate_it-1.8.1.7 spec/web_translate_it_spec.rb
web_translate_it-1.8.1.6 spec/web_translate_it_spec.rb