Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: b1b4e26a89
Fetching contributors…

Cannot retrieve contributors at this time

14 lines (12 sloc) 0.528 kb
Then /^I should see my new "(.*)"$/ do |humanized_attribute|
attribute = humanized_attribute.downcase.gsub(/\s/, '_')
previous_value = @me.send(attribute)
new_value = @me.reload.send(attribute)
assert_not_equal previous_value, new_value,
"New value for #{humanized_attribute} expected but it hasn't changed!"
assert_match new_value, page.body
end
Then /^I should see my "(.*)"$/ do |humanized_attribute|
attribute = humanized_attribute.downcase.gsub(/\s/, '_')
assert_match @me.send(attribute), page.body
end
Jump to Line
Something went wrong with that request. Please try again.