Packages controller added

This commit is contained in:
Christoph Haas 2013-07-27 01:23:28 +02:00
parent f28c637d10
commit c2a695aec0
15 changed files with 110 additions and 1 deletions

View 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
View 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

View file

@ -0,0 +1,4 @@
require 'test_helper'
class PackagesHelperTest < ActionView::TestCase
end

View file

@ -0,0 +1,4 @@
require 'test_helper'
class WelcomeHelperTest < ActionView::TestCase
end

View file

@ -0,0 +1,7 @@
require 'test_helper'
class PackageTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end