mirror of
https://github.com/varvet/pundit.git
synced 2022-11-09 12:30:11 -05:00
Merge pull request #224 from HeroicEric/update-policy-generator
Reorder policy spec actions in generator template
This commit is contained in:
commit
a96e1c7ad6
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__}"
|
||||
end
|
||||
|
||||
permissions :create? do
|
||||
permissions :show? do
|
||||
pending "add some examples to (or delete) #{__FILE__}"
|
||||
end
|
||||
|
||||
permissions :show? do
|
||||
permissions :create? do
|
||||
pending "add some examples to (or delete) #{__FILE__}"
|
||||
end
|
||||
|
||||
|
|
|
@ -5,10 +5,10 @@ class <%= class_name %>PolicyTest < ActiveSupport::TestCase
|
|||
def test_scope
|
||||
end
|
||||
|
||||
def test_create
|
||||
def test_show
|
||||
end
|
||||
|
||||
def test_show
|
||||
def test_create
|
||||
end
|
||||
|
||||
def test_update
|
||||
|
|
Loading…
Reference in a new issue