Given(/^I am a new user$/) do
  visit "http://localhost:3000/logout" 
end

Given(/^I load the home page$/) do
  visit "http://localhost:3000" 
end

Given(/^I fill in "(.*?)" with "(.*?)"$/) do |field, value|
  fill_in(field, :with => value)
  #page.find_field(field).set(value)
end

When(/^I press "(.*?)"$/) do |button|
  click_button(button) 
end

Then(/^the same home page is loaded$/) do
  page.should have_content("ImageThing")  
end

When(/^I click "(.*?)"$/) do |link|
  click_link(link) 
end

Then(/^the profile page is loaded$/) do
  page.should have_content("Profile Page")  
end