[rspec-users] be_true and be_false are suddenly undefined
matt at mattwynne.net
Thu Dec 24 04:14:21 EST 2009
On 24 Dec 2009, at 06:09, Doug wrote:
> after upgrading cucumber to 5.1 be_true and be_false are undefined
> switching to == true or == false works.
> ??? thanks.
The rails integration changed quite a bit for that release. See 
plus a few recent threads on this list.
It sounds like your specific problem is you don't have rspec's
matchers required anymore.
> Then there is an invalid item with 1 "upc"
> error # features/step_definitions/
> undefined method `be_true' for
> #<ActionController::Integration::Session:0x104bc7820> (NoMethodError)
> ./features/step_definitions/extract_steps.rb:45:in `/^retrieve
> Then /^retrieve file$/ do
> basename = File.basename(@filename)
> ExtractReport.exists?(:file_name => basename).should ==
> true **** this is line 45
> @file = ExtractReport.find_by_file_name(basename)
> count = @file.record_count.to_i - 2 # count includes header and
> @file.should have(count).items
> rspec-users mailing list
> rspec-users at rubyforge.org
More information about the rspec-users