Fix test suite
This commit is contained in:
parent
2b24083653
commit
47df4d8afd
5 changed files with 44 additions and 37 deletions
|
|
@ -1,15 +1,17 @@
|
|||
require 'test_helper'
|
||||
|
||||
class PackagesControllerTest < ActionController::TestCase
|
||||
test "should get index" do
|
||||
test "should get index and contain dummy package-4" do
|
||||
get :grid
|
||||
assert_response :success
|
||||
assert_select 'div', 'package-4'
|
||||
end
|
||||
|
||||
# test "should get with_screenshots" do
|
||||
# get :with_screenshots
|
||||
# assert_response :success
|
||||
# end
|
||||
test "should get list view with_screenshots and find Firefox" do
|
||||
get :list, params: { show: 'with' }
|
||||
assert_response :success
|
||||
assert_select 'div', 'A program to browse web sites.'
|
||||
end
|
||||
|
||||
# test "should get without_screenshots" do
|
||||
# get :without_screenshots
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue