minitest now generally works with Devise
This commit is contained in:
parent
b2ffd0f063
commit
1ca187e0ed
5 changed files with 36 additions and 19 deletions
|
|
@ -1,23 +1,25 @@
|
|||
require "test_helper"
|
||||
|
||||
class JsonControllerTest < ActionController::TestCase
|
||||
include Devise::TestHelpers
|
||||
|
||||
def test_package
|
||||
get :package
|
||||
get :package, { name: 'firefox', format: :json }
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
def test_packages
|
||||
get :packages
|
||||
get :packages, { format: :json }
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
def test_screenshots
|
||||
get :screenshots
|
||||
get :screenshots, { format: :json }
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
def test_packages-without-screenshots
|
||||
get :packages-without-screenshots
|
||||
def test_packages_without_screenshots
|
||||
get :packages_without_screenshots, { format: :json }
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue