mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-18 08:10:13 +01:00
Use the keyword args syntax for controller actions
Co-Authored-By: Dan Rice <dnrce@users.noreply.github.com>
This commit is contained in:
parent
755a7a1b80
commit
2f85a42f91
19 changed files with 258 additions and 241 deletions
|
|
@ -18,13 +18,13 @@ class CalendarControllerTest < ActionController::TestCase
|
|||
|
||||
def test_show_ics
|
||||
login_as(:admin_user)
|
||||
get :show, :format => 'ics'
|
||||
get :show, params: { :format => 'ics' }
|
||||
assert_equal 8, assigns['due_all'].count
|
||||
end
|
||||
|
||||
def test_show_xml
|
||||
login_as(:admin_user)
|
||||
get :show, :format => 'xml'
|
||||
get :show, params: { :format => 'xml' }
|
||||
assert_equal 8, assigns['due_all'].count
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue