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