Skip to content
This repository has been archived by the owner on Jul 30, 2019. It is now read-only.

Commit

Permalink
moved spec into the user file, added config for route paths
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Douglas committed Sep 17, 2014
1 parent 5ce699d commit 59234b3
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 20 deletions.
20 changes: 0 additions & 20 deletions spec/features/login_feature_spec.rb

This file was deleted.

17 changes: 17 additions & 0 deletions spec/features/user_feature_spec.rb
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


2 changes: 2 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,7 @@
# --seed 1234
config.order = "random"

# use restful paths in specs
config.include Rails.application.routes.url_helpers

end

0 comments on commit 59234b3

Please sign in to comment.