search for: wrapped_string

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

2009 Mar 09
10
Cucumber - RSpec matcher
...ty_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 I switch the test to this: assert_equal(myentity.entity_legal_name,legal.hll_keycase)...