Tests improved
This commit is contained in:
parent
1b299d53e6
commit
820ff2a30b
5 changed files with 45 additions and 8 deletions
|
|
@ -4,22 +4,22 @@ class JsonControllerTest < ActionController::TestCase
|
|||
include Devise::Test::ControllerHelpers
|
||||
|
||||
def test_package
|
||||
get :package, { name: 'firefox', format: :json }
|
||||
get :package, params: { name: 'firefox', format: :json }
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
def test_packages
|
||||
get :packages, { format: :json }
|
||||
get :packages, params: { format: :json }
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
def test_screenshots
|
||||
get :screenshots, { format: :json }
|
||||
get :screenshots, params: { format: :json }
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
def test_packages_without_screenshots
|
||||
get :packages_without_screenshots, { format: :json }
|
||||
get :packages_without_screenshots, params: { format: :json }
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue