Created
June 23, 2013 21:40
-
-
Save drumusician/5846642 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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