Update rack-test and patch test issues
This commit is contained in:
parent
cdf299e4c6
commit
2ef803b9df
2 changed files with 7 additions and 1 deletions
|
@ -236,7 +236,7 @@ GEM
|
|||
rack-openid (1.3.1)
|
||||
rack (>= 1.1.0)
|
||||
ruby-openid (>= 2.1.8)
|
||||
rack-test (0.7.0)
|
||||
rack-test (0.8.2)
|
||||
rack (>= 1.0, < 3)
|
||||
rack-uri_sanitizer (0.0.2)
|
||||
rails (5.1.4)
|
||||
|
|
|
@ -550,6 +550,9 @@ class TraceControllerTest < ActionController::TestCase
|
|||
post :create, :params => { :trace => { :gpx_file => file, :description => "New Trace", :tagstring => "new,trace", :visibility => "trackable" } }
|
||||
assert_response :forbidden
|
||||
|
||||
# Rewind the file
|
||||
file.rewind
|
||||
|
||||
# Now authenticated
|
||||
create(:user_preference, :user => user, :k => "gps.trace.visibility", :v => "identifiable")
|
||||
assert_not_equal "trackable", user.preferences.where(:k => "gps.trace.visibility").first.v
|
||||
|
@ -829,6 +832,9 @@ class TraceControllerTest < ActionController::TestCase
|
|||
post :api_create, :params => { :file => file, :description => "New Trace", :tags => "new,trace", :visibility => "trackable" }
|
||||
assert_response :unauthorized
|
||||
|
||||
# Rewind the file
|
||||
file.rewind
|
||||
|
||||
# Now authenticated
|
||||
create(:user_preference, :user => user, :k => "gps.trace.visibility", :v => "identifiable")
|
||||
assert_not_equal "trackable", user.preferences.where(:k => "gps.trace.visibility").first.v
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue