Fixed controller tests

This commit is contained in:
Christoph Haas 2015-04-23 17:20:06 +02:00
parent 63e3c62356
commit ed99d198f0
4 changed files with 52 additions and 53 deletions

View file

@ -2,23 +2,23 @@ require 'test_helper'
class PackagesControllerTest < ActionController::TestCase class PackagesControllerTest < ActionController::TestCase
test "should get index" do test "should get index" do
get :index get :grid
assert_response :success assert_response :success
end end
test "should get with_screenshots" do # test "should get with_screenshots" do
get :with_screenshots # get :with_screenshots
assert_response :success # assert_response :success
end # end
test "should get without_screenshots" do # test "should get without_screenshots" do
get :without_screenshots # get :without_screenshots
assert_response :success # assert_response :success
end # end
test "should get moderate" do # test "should get moderate" do
get :moderate # get :moderate
assert_response :success # assert_response :success
end # end
end end

View file

@ -2,8 +2,7 @@ require 'test_helper'
class WelcomeControllerTest < ActionController::TestCase class WelcomeControllerTest < ActionController::TestCase
test "should get index" do test "should get index" do
get :index get :home
assert_response :success assert_response :success
end end
end end

View file

@ -1,23 +1,23 @@
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html # Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
one: # one:
name: MyText # name: MyText
description: MyString # description: MyString
long_description: MyString # long_description: MyString
section: MyString # section: MyString
maintainer: MyString # maintainer: MyString
maintainer_email: MyString # maintainer_email: MyString
homepage: MyString # homepage: MyString
version: MyString # version: MyString
origin: MyString # origin: MyString
two: # two:
name: MyText # name: MyText
description: MyString # description: MyString
long_description: MyString # long_description: MyString
section: MyString # section: MyString
maintainer: MyString # maintainer: MyString
maintainer_email: MyString # maintainer_email: MyString
homepage: MyString # homepage: MyString
version: MyString # version: MyString
origin: MyString # origin: MyString

View file

@ -1,21 +1,21 @@
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html # Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
one: # one:
version: MyString # version: MyString
uploaddatetime: 2013-07-27 13:29:55 # uploaddatetime: 2013-07-27 13:29:55
uploaderhash: MyString # uploaderhash: MyString
uploaderip: MyString # uploaderip: MyString
approved: # approved:
markedfordelete: # markedfordelete:
delete_reason: MyString # delete_reason: MyString
description: MyString # description: MyString
two: # two:
version: MyString # version: MyString
uploaddatetime: 2013-07-27 13:29:55 # uploaddatetime: 2013-07-27 13:29:55
uploaderhash: MyString # uploaderhash: MyString
uploaderip: MyString # uploaderip: MyString
approved: # approved:
markedfordelete: # markedfordelete:
delete_reason: MyString # delete_reason: MyString
description: MyString # description: MyString