Sha256: d462f184c4476a96f7ebc9086f54b927394c5a27c89154553ef47953dce7e6f9

Contents?: true

Size: 765 Bytes

Versions: 8

Compression:

Stored size: 765 Bytes

Contents

require 'spec/spec_helper'

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

8 entries across 8 versions & 1 rubygems

Version Path
web_translate_it-1.8.0.1 spec/web_translate_it_spec.rb
web_translate_it-1.8.0.0 spec/web_translate_it_spec.rb
web_translate_it-1.7.3.1 spec/web_translate_it_spec.rb
web_translate_it-1.7.3.0 spec/web_translate_it_spec.rb
web_translate_it-1.7.2.1 spec/web_translate_it_spec.rb
web_translate_it-1.7.2.0 spec/web_translate_it_spec.rb
web_translate_it-1.7.1.7 spec/web_translate_it_spec.rb
web_translate_it-1.7.1.6 spec/web_translate_it_spec.rb