Sha256: 1a7b7f5a6f7c849301b4a0c583e7f8547fbf22d4b2720714337a5030c2439149
Contents?: true
Size: 1.51 KB
Versions: 32
Compression:
Stored size: 1.51 KB
Contents
require 'test_helper' SimpleCov.command_name "test:functionals" class Contour::AuthenticationsControllerTest < ActionController::TestCase setup do login(users(:valid)) @request.env["omniauth.auth"] = {'provider' => 'google_apps', 'info'=> {'email' => 'test@example.com'}} @authentication = authentications(:open_id) end test "should get index" do get :index assert_response :success end # TODO: Remove # test "should get new" do # get :new # assert_response :success # end # TODO Redirects to Authentication Controller if user logged in, if not redirect to user sign up. test "should create authentication" do assert_difference('Authentication.count') do post :create, authentication: @authentication.attributes end assert_redirected_to authentications_path end # TODO: Remove # test "should show authentication" do # get :show, id: @authentication.to_param # assert_response :success # end # TODO: Remove # test "should get edit" do # get :edit, id: @authentication.to_param # assert_response :success # end # TODO: Remove # test "should update authentication" do # put :update, id: @authentication.to_param, authentication: @authentication.attributes # assert_redirected_to authentication_path(assigns(:authentication)) # end test "should destroy authentication" do assert_difference('Authentication.count', -1) do delete :destroy, id: @authentication, format: 'js' end assert_template 'destroy' end end
Version data entries
32 entries across 32 versions & 1 rubygems