Skip to content

Instantly share code, notes, and snippets.

@martisj
Created May 20, 2012 09:54
Show Gist options
  • Save martisj/2757528 to your computer and use it in GitHub Desktop.
Save martisj/2757528 to your computer and use it in GitHub Desktop.
Test case
require 'spec_helper'
describe "Tasks" do
describe "GET /tasks" do
it "display some tasks" do
@task = Task.create :task => 'go to bed'
visit tasks_path
page.should have_content 'go to bed'
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment