more testing and code cleanup and enable coverage reports on circle

This commit is contained in:
Zachary Chai
2017-03-03 15:26:07 -05:00
parent bee42c8148
commit 7c86aa8e7f
9 changed files with 33 additions and 40 deletions

View File

@ -43,6 +43,11 @@ class LandingControllerTest < ActionController::TestCase
assert_response :success
end
test "should not get room for invalid user" do
get :resource, params: { room_id: 'invalid id', id: @meeting_id, resource: 'rooms' }
assert_response :redirect
end
test "should get wait for moderator" do
get :wait_for_moderator, params: { room_id: @user.encrypted_id, id: @meeting_id, resource: 'rooms' }
assert_response :success