Skip to content

Instantly share code, notes, and snippets.

@vysogot
Created July 5, 2011 09:07
Show Gist options
  • Save vysogot/1064523 to your computer and use it in GitHub Desktop.
Save vysogot/1064523 to your computer and use it in GitHub Desktop.
example test user story
require File.expand_path(File.dirname(__FILE__) + "/../test_helper")
include Test::Unit::UserStory
story "Create the thing", %{
As a user
I want to create something
In order to show something
} do
criteria "without js when logged in" do
it "does something"
end
criteria "when logged in", :js => true do
background do
login_as(:me)
end
it "should be easy to create"
it "should be able to create something" do
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment