Sha256: 3bb43ec3b8b03bbf363619fdc56ea49ac8f6d0da8bc83d7b0c2b4607409ebdb3

Contents?: true

Size: 668 Bytes

Versions: 7

Compression:

Stored size: 668 Bytes

Contents

class Test::Spec::Should
  alias :_test_spec_equal :equal
  def equal(*args)
    @object.respond_to?(:should_equal) ? @object.should_equal(*args) : _test_spec_equal(*args)
  end

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

class Test::Spec::ShouldNot
  alias :_test_spec_equal :equal
  def equal(*args)
    @object.respond_to?(:should_not_equal) ? @object.should_not_equal(*args) : _test_spec_equal(*args)
  end

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

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
Fingertips-on-test-spec-0.1.2 lib/test/spec/rails/test_spec_ext.rb
Fingertips-on-test-spec-0.2.0 lib/test/spec/rails/test_spec_ext.rb
Fingertips-on-test-spec-0.2.1 lib/test/spec/rails/test_spec_ext.rb
Fingertips-on-test-spec-0.2.2 lib/test/spec/rails/test_spec_ext.rb
seamusabshere-on_test_spec-1.0.1 lib/test/spec/rails/test_spec_ext.rb
seamusabshere-on_test_spec-1.0.2 lib/test/spec/rails/test_spec_ext.rb
seamusabshere-on_test_spec-1.0.3 lib/test/spec/rails/test_spec_ext.rb