Sha256: 80aa3c8146da9c7b334c5efc8e218df0533c99393475dfd22f43e56137f92141

Contents?: true

Size: 470 Bytes

Versions: 34

Compression:

Stored size: 470 Bytes

Contents

module ShouldaMacros
  def should_be(boolean_flag)
    should "be #{boolean_flag}" do
      assert_equal true, subject.send(boolean_flag)
    end
  end

  def should_not_be(boolean_flag)
    should "not be #{boolean_flag}" do
      assert_equal false, subject.send(boolean_flag)
    end
  end

  def should_have(attr_name, expectation)
    should "have #{attr_name} == #{expectation.inspect}" do
      assert_equal expectation, subject.send(attr_name)
    end
  end
end

Version data entries

34 entries across 28 versions & 8 rubygems

Version Path
solidus_backend-1.0.0.pre vendor/bundle/gems/simplecov-0.10.0/test/shoulda_macros.rb
vagrant-cloudstack-1.1.0 vendor/bundle/gems/simplecov-0.10.0/test/shoulda_macros.rb
simplecov-0.10.0 test/shoulda_macros.rb
simplecov-0.9.2 test/shoulda_macros.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/simplecov-0.8.2/test/shoulda_macros.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/2.1.0/gems/simplecov-0.8.2/test/shoulda_macros.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/1.9.1/gems/simplecov-0.8.2/test/shoulda_macros.rb
apl-library-0.0.90 vendor/bundle/ruby/1.9.1/gems/simplecov-0.8.2/test/shoulda_macros.rb
simplecov-0.9.1 test/shoulda_macros.rb
simplecov-0.9.0 test/shoulda_macros.rb
simplecov-0.8.2 test/shoulda_macros.rb
simplecov-0.8.1 test/shoulda_macros.rb
simplecov-0.8.0.pre2 test/shoulda_macros.rb
simplecov-0.8.0.pre test/shoulda_macros.rb