Created
April 30, 2013 13:38
-
-
Save chsh/5488752 to your computer and use it in GitHub Desktop.
RSpec requests example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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