Given/^I visit profile keys page$/dovisitkeys_pathendThen/^I should see my ssh keys$/do@user.keys.eachdo|key|page.shouldhave_content(key.title)endendGiven/^I have ssh keys:$/do|table|table.hashes.eachdo|row|Factory:key,:user=>@user,:title=>row[:title],:key=>"jfKLJDFKSFJSHFJ#{row[:title]}"endendGiven/^I submit new ssh key "(.*?)"$/do|arg1|fill_in"key_title",:with=>arg1fill_in"key_key",:with=>"publickey234="click_button"Save"endThen/^I should see new ssh key "(.*?)"$/do|arg1|key=Key.find_by_title(arg1)page.shouldhave_content(key.title)page.shouldhave_content(key.key)current_path.should==key_path(key)endThen/^I should not see "(.*?)" ssh key$/do|arg1|within"#keys-table"dopage.should_nothave_content(arg1)endend