spec/added_spec.rb in added-1.0.0 vs spec/added_spec.rb in added-1.0.1

- old
+ new

@@ -65,19 +65,19 @@ describe 'More' do it 'respects initializers before inclusion' do klass.send :define_method, :initialize do |*args| @my2 = args[0] end - klass.include(mod) + klass.send :include, mod object = klass.new("state2") assert_equal "state", object.instance_variable_get(:@my) assert_equal "state2", object.instance_variable_get(:@my2) end it 'respects initializers after inclusion' do - klass.include(mod) + klass.send :include, mod klass.send :define_method, :initialize do |*args| @my2 = args[0] end object = klass.new("state2") @@ -85,10 +85,10 @@ assert_equal "state2", object.instance_variable_get(:@my2) end it 'works with sub-classed classes' do sub_klass = Class.new(klass) - klass.include(mod) + klass.send :include, mod object = sub_klass.new assert_equal "state", object.instance_variable_get(:@my) end end