[rspec-devel] [ rspec-Bugs-6835 ] bad message with arbitrary predicate

noreply at rubyforge.org noreply at rubyforge.org
Thu Nov 23 09:07:26 EST 2006


Bugs item #6835, was opened at 2006-11-23 13:41
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=3149&aid=6835&group_id=797

Category: expectation module
Group: None
>Status: Closed
Resolution: None
Priority: 3
Submitted By: David Chelimsky (dchelimsky)
Assigned to: David Chelimsky (dchelimsky)
Summary: bad message with arbitrary predicate

Initial Comment:

#from failing_examples/predicate_example
class BddFramework
  def adopted_quickly?
    #this will cause failures because it reallly SHOULD be adopted quickly
    false
  end
end

context "BDD framework" do

  setup do
    @bdd_framework = BddFramework.new
  end

  specify "should be adopted quickly" do
    @bdd_framework.should_be_adopted_quickly
  end

end

produces....

1)
'BDD framework should be adopted quickly' FAILED
#<BddFramework:0x1c8b54> should adopted_quickly nil
./failing_examples/predicate_example.rb:22

NOTE: should adopted_quickly nil

should read:

should be adopted_quickly

----------------------------------------------------------------------

>Comment By: David Chelimsky (dchelimsky)
Date: 2006-11-23 14:07

Message:
Fixed in trunk rev 1130

----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=3149&aid=6835&group_id=797


More information about the rspec-devel mailing list