Displaying 2 results from an estimated 2 matches for "entity_steps".
2009 Mar 09
10
Cucumber - RSpec matcher
...egal|
  myentity = Entity.find_by_entity_common_name!(name.hll_keycase)
  myentity.entity_legal_name.should equal legal.hll_keycase
end
Which fails with this:
    And the entity named "Myuser" has a legal name "Myuser Legal Name"
# features/app/models/entities/step_definitions/entity_steps.rb:20
      expected #<ActiveSupport::Multibyte::Chars:0x2b4bb29e73d8
@wrapped_string="myuser legal name">, got "myuser legal name" (using
.equal?)
which to me says that I got what I expected (myuser legal name) but
which fails the equality test nonetheless.
However, if...
2009 Jan 09
1
Is there a problem with webrat?
..._entity, :list)) do
    click_link "Destroy Entity"
  end
The first within method prints the trace message
The second within method call blows up with:
within method executed for div
    When I delete the "first" entity        #
features/app/models/entities/step_definitions/entity_steps.rb:128
      You have a nil object when you didn''t expect it!
      The error occurred while evaluating nil.to_html (NoMethodError)
      /usr/lib64/ruby/gems/1.8/gems/webrat-0.3.4/lib/webrat/core/scope.rb:176:in
`scoped_dom''
      /usr/lib64/ruby/gems/1.8/gems/webrat-0.3.4/lib/we...