JSON controller added. /json/package/:name implemented
This commit is contained in:
parent
0c439359b9
commit
b3d0b2dc06
4 changed files with 46 additions and 0 deletions
24
test/controllers/json_controller_test.rb
Normal file
24
test/controllers/json_controller_test.rb
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
require "test_helper"
|
||||
|
||||
class JsonControllerTest < ActionController::TestCase
|
||||
def test_package
|
||||
get :package
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
def test_packages
|
||||
get :packages
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
def test_screenshots
|
||||
get :screenshots
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
def test_packages-without-screenshots
|
||||
get :packages-without-screenshots
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue