Sha256: a7c8d32e8d1c1c55748a4542c324f95524e2c68ea21d93951b24bfeacc37c1f5

Contents?: true

Size: 769 Bytes

Versions: 1

Compression:

Stored size: 769 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')
    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

1 entries across 1 versions & 1 rubygems

Version Path
web_translate_it-1.6.1 spec/web_translate_it_spec.rb