Skip to content

Instantly share code, notes, and snippets.

@clayton
Created April 14, 2011 18:21
Show Gist options
  • Select an option

  • Save clayton/920123 to your computer and use it in GitHub Desktop.

Select an option

Save clayton/920123 to your computer and use it in GitHub Desktop.

Revisions

  1. Clayton Lengel-Zigich revised this gist Apr 14, 2011. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions my_acceptance_test_spec.rb
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,5 @@
    # https://github.com/thoughtbot/capybara-webkit/issues/14

    feature "My Feature", "Description", :js => true do
    background do
    # some setup
  2. Clayton Lengel-Zigich created this gist Apr 14, 2011.
    18 changes: 18 additions & 0 deletions my_acceptance_test_spec.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,18 @@
    feature "My Feature", "Description", :js => true do
    background do
    # some setup
    visit my_starting_path
    end

    context "Story Name" do
    context "When I follow path A" do
    context "With only one assertion" do
    it "works as expected"
    end
    context "With more than one assertion" do
    it "fails"
    it "doesn't work"
    end
    end
    end
    end