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-3.1.0.beta.3 lib/extensions/mspec/mspec/matchers/be_false.rb
rhodes-3.1.0.beta.2 lib/extensions/mspec/mspec/matchers/be_false.rb
rhodes-3.1.0.beta.1 lib/extensions/mspec/mspec/matchers/be_false.rb
rhodes-3.0.2 lib/extensions/mspec/mspec/matchers/be_false.rb
rhodes-3.0.2.beta.1 lib/extensions/mspec/mspec/matchers/be_false.rb
rhodes-3.0.1 lib/extensions/mspec/mspec/matchers/be_false.rb
rhodes-3.0.1.beta.8 lib/extensions/mspec/mspec/matchers/be_false.rb
rhodes-3.0.1.beta.7 lib/extensions/mspec/mspec/matchers/be_false.rb
rhodes-3.0.1.beta.6 lib/extensions/mspec/mspec/matchers/be_false.rb
rhodes-3.0.1.beta.5 lib/extensions/mspec/mspec/matchers/be_false.rb
rhodes-3.0.1.beta.4 lib/extensions/mspec/mspec/matchers/be_false.rb
rhodes-3.0.1.beta.3 lib/extensions/mspec/mspec/matchers/be_false.rb
rhodes-3.0.1.beta.2 lib/extensions/mspec/mspec/matchers/be_false.rb
rhodes-3.0.0 lib/extensions/mspec/mspec/matchers/be_false.rb
rhodes-3.0.0.beta.7 lib/extensions/mspec/mspec/matchers/be_false.rb
rhodes-3.0.0.beta.6 lib/extensions/mspec/mspec/matchers/be_false.rb
rhodes-3.0.0.beta.5 lib/extensions/mspec/mspec/matchers/be_false.rb
rhodes-3.0.0.beta.4 lib/extensions/mspec/mspec/matchers/be_false.rb
rhodes-3.0.0.beta.3 lib/extensions/mspec/mspec/matchers/be_false.rb
rhodes-3.0.0.beta.2 lib/extensions/mspec/mspec/matchers/be_false.rb