mirror of
https://github.com/varvet/pundit.git
synced 2022-11-09 12:30:11 -05:00
Reorder policy spec actions
This commit is contained in:
parent
6293bec2eb
commit
5900e7ec6f
2 changed files with 4 additions and 4 deletions
|
@ -10,11 +10,11 @@ describe <%= class_name %>Policy do
|
||||||
pending "add some examples to (or delete) #{__FILE__}"
|
pending "add some examples to (or delete) #{__FILE__}"
|
||||||
end
|
end
|
||||||
|
|
||||||
permissions :create? do
|
permissions :show? do
|
||||||
pending "add some examples to (or delete) #{__FILE__}"
|
pending "add some examples to (or delete) #{__FILE__}"
|
||||||
end
|
end
|
||||||
|
|
||||||
permissions :show? do
|
permissions :create? do
|
||||||
pending "add some examples to (or delete) #{__FILE__}"
|
pending "add some examples to (or delete) #{__FILE__}"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -5,10 +5,10 @@ class <%= class_name %>PolicyTest < ActiveSupport::TestCase
|
||||||
def test_scope
|
def test_scope
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_create
|
def test_show
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_show
|
def test_create
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_update
|
def test_update
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue