Sha256: 557e8dcd0970795916ac065ab56e874112e4e0aa55140c58ec955ee57d35e99d

Contents?: true

Size: 440 Bytes

Versions: 8

Compression:

Stored size: 440 Bytes

Contents

require "test_helper"

# ControllerTest generated by Typus, use it to test the extended admin functionality.
class Admin::<%= resource %>ControllerTest < ActionController::TestCase

  setup do
    admin = admin_users(:admin)
    @request.session[:typus_user_id] = admin.id
  end

  test "should render index" do
    get :index
    assert_template :index
  end

  test "should render new" do
    get :new
    assert_template :new
  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
typus-1.0.0.pre8 lib/generators/templates/functional_test.rb
typus-1.0.0.pre7 lib/generators/templates/functional_test.rb
typus-1.0.0.pre6 lib/generators/templates/functional_test.rb
typus-1.0.0.pre5 lib/generators/templates/functional_test.rb
typus-1.0.0.pre4 lib/generators/templates/functional_test.rb
typus-1.0.0.pre3 lib/generators/templates/functional_test.rb
typus-1.0.0.pre2 lib/generators/templates/functional_test.rb
typus-1.0.0.pre lib/generators/templates/functional_test.rb