Sha256: f9b052ee2a70e89a92d1657ec9e773692b6aeda9d423b9c4715e76baf3211535

Contents?: true

Size: 760 Bytes

Versions: 11

Compression:

Stored size: 760 Bytes

Contents

require File.join(File.dirname(__FILE__), 'spec_helper')

module WebTranslateIt
  class I18n
  end
end

describe WebTranslateIt do
  
  before(:each) do
    WebTranslateIt::I18n.stub(:locale => 'en')
    WebTranslateIt::Configuration.const_set("RAILS_ROOT", File.dirname(__FILE__) + '/examples')
    @configuration = WebTranslateIt::Configuration.new
    @file = mock(WebTranslateIt::TranslationFile)
    @file.stub(:fetch => 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

11 entries across 11 versions & 2 rubygems

Version Path
wti_gettext_i18n_rails-1.0.3 spec/web_translate_it_spec.rb
wti_gettext_i18n_rails-1.0.2 spec/web_translate_it_spec.rb
wti_gettext_i18n_rails-1.0.1 spec/web_translate_it_spec.rb
wti_gettext_i18n_rails-1.0.0 spec/web_translate_it_spec.rb
web_translate_it-1.5.2 spec/web_translate_it_spec.rb
web_translate_it-1.5.1 spec/web_translate_it_spec.rb
web_translate_it-1.5.0 spec/web_translate_it_spec.rb
web_translate_it-1.4.7 spec/web_translate_it_spec.rb
web_translate_it-1.4.6 spec/web_translate_it_spec.rb
web_translate_it-1.4.5 spec/web_translate_it_spec.rb
web_translate_it-1.4.4 spec/web_translate_it_spec.rb