Logo
Explore Help
Sign In
mmoser/skill-assessment-app
1
0
Fork 0
You've already forked skill-assessment-app
Code Issues Pull Requests Releases Wiki Activity
skill-assessment-app/test/controllers/admin_controller_test.rb

13 lines
325 B
Ruby
Raw Normal View History

rubocop noise: fixes FrozenStringLiteralComment Adding the .ruby-verison file triggered previously un-run cops, specifically: This cop is designed to help upgrade to Ruby 3.0. It will add the comment `# frozen_string_literal: true` to the top of files to enable frozen string literals. Frozen string literals will be default in Ruby 3.0. The comment will be added below a shebang and encoding comment. The frozen string literal comment is only valid in Ruby 2.3+. More info on rubocop [Automatic-Corrections](https://github.com/bbatsov/rubocop/wiki/Automatic-Corrections)
2016-09-08 10:25:33 -05:00
# frozen_string_literal: true
admin interface generation
2016-08-17 17:49:09 -05:00
require 'test_helper'
class AdminControllerTest < ActionDispatch::IntegrationTest
admin test complete
2016-09-22 17:26:00 -05:00
test 'should provide flash mesage when access is denied' do
auth_reviewer
get admin_candidates_path
assert_redirected_to admin_login_path
assert_match 'not authorized', flash[:error]
end
admin interface generation
2016-08-17 17:49:09 -05:00
end
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.1 Page: 35ms Template: 4ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API