Skip to content

Commit

Permalink
added UserSession line to test
Browse files Browse the repository at this point in the history
  • Loading branch information
sandyvern committed Nov 5, 2016
1 parent 677f3a2 commit bd128e4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions test/functional/questions_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ def setup
end

test "/questions/new form loads" do
UserSession.create(rusers(:bob))
get :new
assert_response :success
end
Expand Down
4 changes: 2 additions & 2 deletions test/integration/login_flow_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ class LoginFlowTest < ActionDispatch::IntegrationTest
assert_equal '/post?tags=question%3Aquestion&template=question&title=What&redirect=question', request.fullpath
# assert_select "input#title" do
# assert_select "[value=?]", "What"
end
#end
#end
end

test "should redirect to current page when logging in through the header login" do
get '/questions'
Expand Down

0 comments on commit bd128e4

Please sign in to comment.