Skip to content

Commit 39105de

Browse files
committed
Add tests for version and current version searches
1 parent a5a9d38 commit 39105de

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

test/controllers/admin_controller_test.rb

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,20 @@ class AdminControllerTest < ActionController::TestCase
111111
assert_not_nil assigns(:reports)
112112
end
113113

114+
test 'should search error reports by version' do
115+
sign_in users(:admin)
116+
get :error_reports, params: { version: 'abc123' }
117+
assert_response(:success)
118+
assert_not_nil assigns(:reports)
119+
end
120+
121+
test 'should search error reports from current version' do
122+
sign_in users(:admin)
123+
get :error_reports, params: { version: 'current' }
124+
assert_response(:success)
125+
assert_not_nil assigns(:reports)
126+
end
127+
114128
test 'should get audit log' do
115129
sign_in users(:admin)
116130
get :audit_log

0 commit comments

Comments
 (0)