Skip to content

Commit

Permalink
testing search page
Browse files Browse the repository at this point in the history
  • Loading branch information
jywarren committed Mar 2, 2015
1 parent a7c7d5b commit 50e2c17
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/functional/spectrums_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@ class SpectrumsControllerTest < ActionController::TestCase
assert_response :redirect # to /analyze/spectrums/#, lets update this
end

test "should show search" do
get :search, :id => "cfl"
assert_response :success
assert_not_nil :spectrums
assert_not_nil :sets
end

test "should get edit" do
session[:user_id] = User.first.id # log in
get :edit, :id => spectrums(:one).id
Expand Down

0 comments on commit 50e2c17

Please sign in to comment.