Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.