Class: Test::Spec::ShouldNot
- Inherits:
-
Object
- Object
- Test::Spec::ShouldNot
- Defined in:
- lib/test/spec/rails/test_spec_ext.rb
Instance Method Summary collapse
Instance Method Details
#_test_spec_be ⇒ Object
19 |
# File 'lib/test/spec/rails/test_spec_ext.rb', line 19 alias :_test_spec_be :be |
#_test_spec_equal ⇒ Object
14 |
# File 'lib/test/spec/rails/test_spec_ext.rb', line 14 alias :_test_spec_equal :equal |
#be(*args) ⇒ Object
20 21 22 |
# File 'lib/test/spec/rails/test_spec_ext.rb', line 20 def be(*args) @object.respond_to?(:should_not_equal) ? @object.should_not_equal(*args) : _test_spec_be(*args) end |
#equal(*args) ⇒ Object
15 16 17 |
# File 'lib/test/spec/rails/test_spec_ext.rb', line 15 def equal(*args) @object.respond_to?(:should_not_equal) ? @object.should_not_equal(*args) : _test_spec_equal(*args) end |