test/defined_test.rb in defined-0.0.1 vs test/defined_test.rb in defined-0.0.2
- old
+ new
@@ -15,9 +15,17 @@
class Dummy
extend TestMethods
end
+ def test_enabled_toggle
+ assert Defined.enabled?
+ Defined.disable!
+ assert !Defined.enabled?
+ Defined.enable!
+ assert Defined.enabled?
+ end
+
def test_should_match_definition_start_with_keyword
assert Defined.send(:definition_start?, 'class', false, false)
end
def test_should_not_match_definition_start_with_wrong_keyword
\ No newline at end of file