Skip to content

Commit 50e2c17

Browse files
committed
testing search page
1 parent a7c7d5b commit 50e2c17

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/functional/spectrums_controller_test.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,13 @@ class SpectrumsControllerTest < ActionController::TestCase
2121
assert_response :redirect # to /analyze/spectrums/#, lets update this
2222
end
2323

24+
test "should show search" do
25+
get :search, :id => "cfl"
26+
assert_response :success
27+
assert_not_nil :spectrums
28+
assert_not_nil :sets
29+
end
30+
2431
test "should get edit" do
2532
session[:user_id] = User.first.id # log in
2633
get :edit, :id => spectrums(:one).id

0 commit comments

Comments
 (0)