Sha256: 13fbc5cae316e4a7bd58d9ecd5564e03f9130fa4e5732629496c4b6ab9dce74c
Contents?: true
Size: 615 Bytes
Versions: 5
Compression:
Stored size: 615 Bytes
Contents
require 'test_helper' class <%= user_plural_class_name %>ControllerTest < ActionController::TestCase def test_new get :new assert_template 'new' end def test_create_invalid <%= user_class_name %>.any_instance.stubs(:valid?).returns(false) post :create assert_template 'new' end def test_create_valid <%= user_class_name %>.any_instance.stubs(:valid?).returns(true) post :create assert_redirected_to root_url <%- unless options.authlogic? -%> assert_equal assigns['<%= user_singular_name %>'].id, session['<%= user_singular_name %>_id'] <%- end -%> end end
Version data entries
5 entries across 5 versions & 1 rubygems