Class: Test::Spec::Should

Inherits:
Object
  • Object
show all
Defined in:
lib/test/spec/rails/test_spec_ext.rb

Instance Method Summary collapse

Instance Method Details

#_test_spec_beObject



7
# File 'lib/test/spec/rails/test_spec_ext.rb', line 7

alias :_test_spec_be :be

#_test_spec_equalObject



2
# File 'lib/test/spec/rails/test_spec_ext.rb', line 2

alias :_test_spec_equal :equal

#be(*args) ⇒ Object



8
9
10
# File 'lib/test/spec/rails/test_spec_ext.rb', line 8

def be(*args)
  @object.respond_to?(:should_equal) ? @object.should_equal(*args) : _test_spec_be(*args)
end

#equal(*args) ⇒ Object



3
4
5
# File 'lib/test/spec/rails/test_spec_ext.rb', line 3

def equal(*args)
  @object.respond_to?(:should_equal) ? @object.should_equal(*args) : _test_spec_equal(*args)
end