Given /^I am registered$/ do
  @registered_user = Factory(:user, :email => "john@doe.com")
end

Given /^I am registered$/ do
  @registered_user = Factory(:user, :email => "john@doe.com")
end

Given /^I am admin$/ do
  @registered_user.make_admin
end

Given /^I am logged in as admin$/ do
  steps %Q{
    Given I am registered
    And I am admin
    And I am on the homepage
    When I follow "Sign in"
    And I fill in "Email" with "john@doe.com"
    And I fill in "Password" with "password"
    And I press "Sign in"
  }
end

Add 'I am admin' & 'I am logged in as admin' steps.
Add 'I am admin' & 'I am logged in as admin' steps.
