Skip to content

Instantly share code, notes, and snippets.

@hamannp
Created December 6, 2011 19:36
Show Gist options
  • Save hamannp/1439594 to your computer and use it in GitHub Desktop.
Save hamannp/1439594 to your computer and use it in GitHub Desktop.
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