Sha256: b598fdb58dbcbaab7859844fc4a1c99da710a861a2a9d4ff34bc4bbdd2c2ebce

Contents?: true

Size: 991 Bytes

Versions: 4

Compression:

Stored size: 991 Bytes

Contents

require 'coveralls'
Coveralls.wear!

require 'candy_check'
require 'candy_check/cli'

require 'minitest/autorun'
require 'minitest/around/spec'

require 'webmock/minitest'

require_relative 'support/with_fixtures'
require_relative 'support/with_temp_file'
require_relative 'support/with_command'

ENV['DEBUG'] && Google::APIClient.logger.level = Logger::DEBUG

module MiniTest
  module Assertions
    # The first parameter must be ```true```, not coercible to true.
    def assert_true(obj, msg = nil)
      msg = message(msg) { "<true> expected but was #{mu_pp obj}" }
      assert obj == true, msg
    end

    # The first parameter must be ```false```, not just coercible to false.
    def assert_false(obj, msg = nil)
      msg = message(msg) { "<false> expected but was #{mu_pp obj}" }
      assert obj == false, msg
    end
  end

  module Expectations
    infect_an_assertion :assert_true, :must_be_true, :unary
    infect_an_assertion :assert_false, :must_be_false, :unary
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
candy_check-0.1.0.pre spec/spec_helper.rb
candy_check-0.0.5 spec/spec_helper.rb
candy_check-0.0.3 spec/spec_helper.rb
candy_check-0.0.2 spec/spec_helper.rb