Skip to content

Instantly share code, notes, and snippets.

@chsh
Created April 30, 2013 13:38
Show Gist options
  • Save chsh/5488752 to your computer and use it in GitHub Desktop.
Save chsh/5488752 to your computer and use it in GitHub Desktop.
RSpec requests example
require 'spec_helper'
describe "Orders" do
describe "GET /orders" do
it "works! (now write some real specs)" do
# Run the generator again with the --webrat flag if you want to use webrat methods/matchers
get orders_path
response.status.should be(200)
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment