Skip to content

Instantly share code, notes, and snippets.

@drumusician
Created June 22, 2013 21:41
Show Gist options
  • Save drumusician/5842718 to your computer and use it in GitHub Desktop.
Save drumusician/5842718 to your computer and use it in GitHub Desktop.
require "spec_helper"
feature "Widget management" 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment