Sha256: 4bf1ec2f10a1ae7357733c245ed1522f0a8f568e94450756b59c396988ad2731

Contents?: true

Size: 303 Bytes

Versions: 18

Compression:

Stored size: 303 Bytes

Contents

RSpec::Matchers.define(:evaluate_to_true) do |meth, *args|
  match{|obj| obj.send(meth, *args) == true }
  failure_message_for_should{|obj|     "expected #{obj.inspect} to #{meth} #{args.join(",")}"}
  failure_message_for_should_not{|obj| "expected #{obj.inspect} to not #{meth} #{args.join(",")}"}
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
gorillib-0.6.0 spec/support/matchers/evaluate_to_true.rb
gorillib-0.5.2 spec/support/matchers/evaluate_to_true.rb
gorillib-0.5.0 spec/support/matchers/evaluate_to_true.rb
gorillib-0.4.2 spec/support/matchers/evaluate_to_true.rb
gorillib-0.4.2pre spec/support/matchers/evaluate_to_true.rb
gorillib-0.4.0pre spec/support/matchers/evaluate_to_true.rb
gorillib-0.4.1pre spec/support/matchers/evaluate_to_true.rb
gorillib-0.1.11 spec/support/matchers/evaluate_to_true.rb
gorillib-0.1.9 spec/support/matchers/evaluate_to_true.rb
gorillib-0.1.8 spec/support/matchers/evaluate_to_true.rb
gorillib-0.1.7 spec/support/matchers/evaluate_to_true.rb
gorillib-0.1.6 spec/support/matchers/evaluate_to_true.rb
gorillib-0.1.5 spec/support/matchers/evaluate_to_true.rb
gorillib-0.1.4 spec/support/matchers/evaluate_to_true.rb
gorillib-0.1.3 spec/support/matchers/evaluate_to_true.rb
gorillib-0.1.2 spec/support/matchers/evaluate_to_true.rb
gorillib-0.1.1 spec/support/matchers/evaluate_to_true.rb
gorillib-0.1.0 spec/support/matchers/evaluate_to_true.rb