Skip to content

Commit

Permalink
remove duplication in test
Browse files Browse the repository at this point in the history
  • Loading branch information
maratvmk committed Jul 18, 2013
1 parent ebc5bdb commit 0ebf45c
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions activesupport/test/concern_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,6 @@ def test_class_methods_are_extended
assert_equal ConcernTest::Baz::ClassMethods, (class << @klass; self.included_modules; end)[0]
end

def test_instance_methods_are_included
@klass.send(:include, Baz)
assert_equal "baz", @klass.new.baz
assert @klass.included_modules.include?(ConcernTest::Baz)
end

def test_included_block_is_ran
@klass.send(:include, Baz)
assert_equal true, @klass.included_ran
Expand Down

0 comments on commit 0ebf45c

Please sign in to comment.