Sha256: 70323196db07f85bf1601cbf6714a8c2d6964f5bf1bbdeae6f6aac1a55a7e794

Contents?: true

Size: 609 Bytes

Versions: 4

Compression:

Stored size: 609 Bytes

Contents

require 'spec_helper'

describe Lolita::I18n do 
  describe "loaded" do 
    
    it "should check Redis connection after Lolita.setup" do 
      expect(Lolita.i18n).to receive(:init)
      Lolita.setup{}
    end

    it "should add #i18n to Lolita configuration" do 
      expect(Lolita.configuration).to respond_to(:i18n)
    end

    it "should have Request,Configuration,Exceptions constants in module" do 
      expect(Lolita::I18n::Request).to be_kind_of(Class)
      expect(Lolita::I18n::Configuration).to be_kind_of(Class)
      expect(Lolita::I18n::Exceptions).to be_kind_of(Module)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
lolita-i18n-0.5.9 spec/lolita_i18n_spec.rb
lolita-i18n-0.6.0 spec/lolita_i18n_spec.rb
lolita-i18n-0.5.8 spec/lolita_i18n_spec.rb
lolita-i18n-0.5.7 spec/lolita_i18n_spec.rb