Created
May 14, 2013 19:19
-
-
Save hwatkins/5578673 to your computer and use it in GitHub Desktop.
Sample capybara test
spec/integration/creating_projects_spec.rb
This file contains hidden or 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 'Creating Projects' do | |
scenario "can create a project" do | |
visit '/' | |
click_link 'New Project' | |
fill_in 'Name', :with => 'TextMate 2' | |
fill_in 'Description', :with => 'A text-editor for OS X' | |
click_button 'Create Project' | |
expect(page).to have_content('Project has been created.') | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment