This repository has been archived by the owner on Jul 30, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
moved spec into the user file, added config for route paths
- Loading branch information
Brian Douglas
committed
Sep 17, 2014
1 parent
5ce699d
commit 59234b3
Showing
3 changed files
with
19 additions
and
20 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,19 @@ | ||
require 'spec_helper' | ||
|
||
user = FactoryGirl.build(:user) | ||
|
||
feature "login" do | ||
it "should work and view as a user" do | ||
visit root_path | ||
click_on 'Sign In' | ||
fill_in 'Email', with: user.email | ||
fill_in 'Password', with: user.password | ||
click_button 'Sign In' | ||
# save_and_open_page | ||
|
||
# assert page.has_content?("Discover Churches") | ||
assert_redirected_to root_path | ||
end | ||
end | ||
|
||
|
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