Sha256: 336faf89ad2ae3596d6d88d61506ac514da29393cbb50c7a2310ea4bcc2026c7

Contents?: true

Size: 411 Bytes

Versions: 34

Compression:

Stored size: 411 Bytes

Contents

require 'test_helper'

class AccountsControllerTest < ActionController::TestCase

  context "when signed out" do
    setup { sign_out }
    should_deny_access_on :get, :edit
    should_deny_access_on :put, :update
  end

  context "on POST to create" do
    setup do
      post :create
    end

    should_deny_access

    should "not store location" do
      assert session[:return_to].nil?
    end
  end

end

Version data entries

34 entries across 34 versions & 8 rubygems

Version Path
headstart-0.3.0 test/rails_root/test/functional/accounts_controller_test.rb
headstart-0.1.0 test/rails_root/test/functional/accounts_controller_test.rb
cops-0.2.0.7 test/rails_root/test/functional/accounts_controller_test.rb
blue_light_special-0.2.1 test/rails_root/test/functional/accounts_controller_test.rb
cops-0.2.0.6 test/rails_root/test/functional/accounts_controller_test.rb
blue_light_special_heroku_fork-0.2.0.1 test/rails_root/test/functional/accounts_controller_test.rb
forgetful-clearance-0.8.11 test/rails_root/test/functional/accounts_controller_test.rb
forgetful-clearance-0.8.10 test/rails_root/test/functional/accounts_controller_test.rb
blue_light_special-0.2.0 test/rails_root/test/functional/accounts_controller_test.rb
benaldred-clearance-0.8.8 test/rails_root/test/functional/accounts_controller_test.rb
clearance-0.8.8 test/rails_root/test/functional/accounts_controller_test.rb
clearance-0.8.7 test/rails_root/test/functional/accounts_controller_test.rb
clearance-0.8.6 test/rails_root/test/functional/accounts_controller_test.rb
clearance-0.8.5 test/rails_root/test/functional/accounts_controller_test.rb