[rspec-users] [cucumber] Tests pass, application does not.

James Byrne lists at ruby-forum.com
Thu Apr 9 12:46:40 EDT 2009

This has just cropped up this morning and I have no clue as to what is
causing it.

Here is the error when running the application through the web browser
in development:

 undefined method `method_exists?' for #<Entity:0x2b7214243bd0>


Here is the code:

14  an.each do |f|
15     puts "checking method: #{f}"
16    self.send("#{f}=", "#{param_hash[f]}") if
17  end

But, when I run the cucumber test for the same controller and view this
is what I see:
    And they enter the entity legal name "MyUser  LEGAL  NAME"
checking method: entity_common_name
checking method: entity_legal_name
checking method: entity_legal_form
    And I press "Create"
       # features/support/step_definitions/local_webrat_steps.rb:14
    Then they should see a save error message
       # features/app/step_definitions/crud_response_steps.rb:24

12 scenarios
78 passed steps

I am lost...  Help?
Posted via http://www.ruby-forum.com/.

More information about the rspec-users mailing list