Below is an example of a RSpec 2 – Request test looks like in a behaviours_spec.rb file:
describe “Behaviours” do
describe “GET /behaviours” do
it “works! (now write some real specs)” do
get behaviours_path
response.status.should be(302)
end
end
end
Leave a Reply