spec/celsius/i18n_spec.rb in celsius-0.4.1 vs spec/celsius/i18n_spec.rb in celsius-0.4.2

- old
+ new

@@ -1,11 +1,11 @@ require "celsius/i18n" describe Celsius::I18n do let(:class_with_i18n_included) do Class.new.tap do |klass| - klass.include(Celsius::I18n) + klass.send(:include, Celsius::I18n) end end context "when included into a class" do context "when the including class has a class variable named @@locales" do @@ -14,11 +14,11 @@ end let(:klass) do Class.new.tap do |_klass| _klass.class_variable_set(:@@locales, value_of_locales) - _klass.include(Celsius::I18n) + _klass.send(:include, Celsius::I18n) end end it "does not alter the existing class variable" do expect(klass.class_variable_get(:@@locales)).to eq(value_of_locales) @@ -26,10 +26,10 @@ end context "when the including class has no class variable named @@locales" do let(:klass) do Class.new.tap do |_klass| - _klass.include(Celsius::I18n) + _klass.send(:include, Celsius::I18n) end end it "defines a class variable named @@locales as an empty hash" do expect(klass.class_variable_get(:@@locales)).to eq({})