rubocop
This commit is contained in:
parent
d40d2ff164
commit
e1f42aee0c
3 changed files with 19 additions and 20 deletions
|
|
@ -1,13 +1,13 @@
|
|||
require 'test_helper'
|
||||
|
||||
class PackagesControllerTest < ActionController::TestCase
|
||||
test "should get index and contain dummy package-4" 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 list view with_screenshots and find Firefox" do
|
||||
test 'should get list view with_screenshots and find Firefox' do
|
||||
# package = Package.create!(name: 'firefox', description: 'A web browser.')
|
||||
# Screenshot.create!(package: package, approved: true, hidden: false)
|
||||
|
||||
|
|
@ -20,7 +20,12 @@ class PackagesControllerTest < ActionController::TestCase
|
|||
assert_select 'div', 'A program to browse web sites.'
|
||||
end
|
||||
|
||||
# test "should get without_screenshots" do
|
||||
# test 'should get thumbnail for a package and a desired version' do
|
||||
# # get '/thumbnail-with-version/package-5/0.1'
|
||||
# get thumbnail_with_version_url('package-5', '0.1')
|
||||
# end
|
||||
|
||||
# test 'should get without_screenshots' do
|
||||
# get :without_screenshots
|
||||
# assert_response :success
|
||||
# end
|
||||
|
|
@ -56,7 +61,6 @@ class PackagesControllerTest < ActionController::TestCase
|
|||
# byebug
|
||||
# assert_equal newest_screenshot2.user, users(:normal)
|
||||
|
||||
|
||||
# # (name: 'firefox')
|
||||
# # img_count_before = page.find_all('img').count
|
||||
# # attach_file 'file[]', Rails.root.join('test/fixtures/files/large1.png')
|
||||
|
|
@ -77,5 +81,4 @@ class PackagesControllerTest < ActionController::TestCase
|
|||
# # newest_screenshot.destroy
|
||||
# # sign_out users(:normal)
|
||||
# end
|
||||
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue