Sha256: de6fbbcf4f29c173ae03dcc410407b71a5d0f1de522cac904501c335026e8586

Contents?: true

Size: 332 Bytes

Versions: 192

Compression:

Stored size: 332 Bytes

Contents

class BeFalseMatcher
  def matches?(actual)
    @actual = actual
    @actual == false
  end

  def failure_message
    ["Expected #{@actual.inspect}", "to be false"]
  end
  
  def negative_failure_message
    ["Expected #{@actual.inspect}", "not to be false"]
  end
end

class Object
  def be_false
    BeFalseMatcher.new
  end
end

Version data entries

192 entries across 168 versions & 4 rubygems

Version Path
rhodes-5.5.18 lib/extensions/mspec/mspec/matchers/be_false.rb
rhodes-5.5.17 lib/extensions/mspec/mspec/matchers/be_false.rb
rhodes-5.5.15 lib/extensions/mspec/mspec/matchers/be_false.rb
rhodes-5.5.0.22 lib/extensions/mspec/mspec/matchers/be_false.rb
rhodes-5.5.2 lib/extensions/mspec/mspec/matchers/be_false.rb
rhodes-5.5.0.7 lib/extensions/mspec/mspec/matchers/be_false.rb
rhodes-5.5.0.3 lib/extensions/mspec/mspec/matchers/be_false.rb
rhodes-5.5.0 lib/extensions/mspec/mspec/matchers/be_false.rb
tauplatform-1.0.3 lib/extensions/mspec/mspec/matchers/be_false.rb
mspec-1.9.1 lib/mspec/matchers/be_false.rb
mspec-1.9.0 lib/mspec/matchers/be_false.rb
tauplatform-1.0.2 lib/extensions/mspec/mspec/matchers/be_false.rb
tauplatform-1.0.1 lib/extensions/mspec/mspec/matchers/be_false.rb
mspec-1.8.0 lib/mspec/matchers/be_false.rb
mspec-1.7.0 lib/mspec/matchers/be_false.rb
mspec-1.6.0 lib/mspec/matchers/be_false.rb
mspec-1.5.21 lib/mspec/matchers/be_false.rb
mspec-1.5.20 lib/mspec/matchers/be_false.rb
mspec-1.5.19 lib/mspec/matchers/be_false.rb
mspec-1.5.18 lib/mspec/matchers/be_false.rb