Skip to content

Instantly share code, notes, and snippets.

@hwatkins
Created May 14, 2013 19:19
Show Gist options
  • Save hwatkins/5578673 to your computer and use it in GitHub Desktop.
Save hwatkins/5578673 to your computer and use it in GitHub Desktop.
Sample capybara test spec/integration/creating_projects_spec.rb
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