1
0
Fork 0
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:
Jonas Nicklas 2014-11-02 19:27:07 +01:00
commit a96e1c7ad6
2 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -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