Created
December 6, 2011 19:36
-
-
Save hamannp/1439594 to your computer and use it in GitHub Desktop.
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' | |
require 'selenium-webdriver' | |
describe "User Requests" do | |
context "not logged_in" do | |
let(:user){ Factory :user } | |
describe "GET#/user/:id/edit" do | |
Capybara.current_driver = :selenium | |
it "should redirect to the login page",:js=>true do | |
get edit_user_path(user) | |
page.body.should include "Log in" | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment