Skip to content

Instantly share code, notes, and snippets.

@drumusician
Created June 23, 2013 21:40
Show Gist options
  • Save drumusician/5846642 to your computer and use it in GitHub Desktop.
Save drumusician/5846642 to your computer and use it in GitHub Desktop.
require 'spec_helper'
feature "User creates a user profile" do
scenario "User does not have a profile yet" do
sign_in_user
visit '/users/require "spec_helper"
feature "feature" do
scenario "User creates a new widget" do
visit "/widgets/new"
fill_in "Name", :with => "My Widget"
click_button "Create Widget"
expect(page).to have_text("Widget was successfully created.")
end
end:id'
expect(page).to have_link("create your profile now!")
end
scenario "User has a profile" do
sign_in_user
visit '/users/:id'
expect(page).to have_content("Your Profile Information")
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment