Sha256: b5f6298505aa0ef48fdf7c66305456a8aa9414dd81025420509394e7299b325f

Contents?: true

Size: 440 Bytes

Versions: 9

Compression:

Stored size: 440 Bytes

Contents

require 'test_helper'

class ACLIvarsTest < ActionController::TestCase
  test "owner of foo destroys" do
    assert ( user = User.create ).has_role! :owner, Bar
    assert delete :destroy, :id => 1, :user_id => user.id
    assert_response :ok
  end

  test "bartender at Foo destroys" do
    assert ( user = User.create ).has_role! :bartender, Foo
    assert delete :destroy, :id => 1, :user_id => user.id
    assert_response :ok
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
acl9-2.1.2 test/controllers/acl_ivars_test.rb
acl9-2.1.1 test/controllers/acl_ivars_test.rb
acl9-2.1.0 test/controllers/acl_ivars_test.rb
acl9-2.0.0 test/controllers/acl_ivars_test.rb
acl9-1.3.0 test/controllers/acl_ivars_test.rb
acl9-1.2.1 test/controllers/acl_ivars_test.rb
acl9-1.2.0 test/controllers/acl_ivars_test.rb
acl9-1.1.0 test/controllers/acl_ivars_test.rb
acl9-1.0.0 test/controllers/acl_ivars_test.rb