search for: find_by_entity_common_name

Displaying 1 result from an estimated 1 matches for "find_by_entity_common_name".

2009 Mar 09
10
Cucumber - RSpec matcher
I must be missing something obvious here but I cannot seem to see it. I have this step definition: When /entity named "(.*)" has a legal name "(.*)"/ do |name, legal| 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...