Packages controller added
This commit is contained in:
parent
f28c637d10
commit
c2a695aec0
15 changed files with 110 additions and 1 deletions
24
test/controllers/packages_controller_test.rb
Normal file
24
test/controllers/packages_controller_test.rb
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
require 'test_helper'
|
||||
|
||||
class PackagesControllerTest < ActionController::TestCase
|
||||
test "should get index" do
|
||||
get :index
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should get with_screenshots" do
|
||||
get :with_screenshots
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should get without_screenshots" do
|
||||
get :without_screenshots
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should get moderate" do
|
||||
get :moderate
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
end
|
||||
23
test/fixtures/packages.yml
vendored
Normal file
23
test/fixtures/packages.yml
vendored
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
|
||||
|
||||
one:
|
||||
name: MyText
|
||||
description: MyString
|
||||
long_description: MyString
|
||||
section: MyString
|
||||
maintainer: MyString
|
||||
maintainer_email: MyString
|
||||
homepage: MyString
|
||||
version: MyString
|
||||
origin: MyString
|
||||
|
||||
two:
|
||||
name: MyText
|
||||
description: MyString
|
||||
long_description: MyString
|
||||
section: MyString
|
||||
maintainer: MyString
|
||||
maintainer_email: MyString
|
||||
homepage: MyString
|
||||
version: MyString
|
||||
origin: MyString
|
||||
4
test/helpers/packages_helper_test.rb
Normal file
4
test/helpers/packages_helper_test.rb
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
require 'test_helper'
|
||||
|
||||
class PackagesHelperTest < ActionView::TestCase
|
||||
end
|
||||
4
test/helpers/welcome_helper_test.rb
Normal file
4
test/helpers/welcome_helper_test.rb
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
require 'test_helper'
|
||||
|
||||
class WelcomeHelperTest < ActionView::TestCase
|
||||
end
|
||||
7
test/models/package_test.rb
Normal file
7
test/models/package_test.rb
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
require 'test_helper'
|
||||
|
||||
class PackageTest < ActiveSupport::TestCase
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue