diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-07-31 14:35:16 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-07-31 14:35:16 +0200 |
| commit | 5f17f421b176d48ef556fb379f59bbb7d284b48e (patch) | |
| tree | 15f07f480b07c385c88d43f827fc452b5b9df21a /test | |
| parent | a90a77cfb913c7c0444ec793b47fd4be6fb66c9f (diff) | |
Retire the unused per-node permission subsystem
Every path through Permission raised or lied: validates_presence_of on a
boolean made granted = false unsaveable, since false.blank? is true;
get_permission_for read a nonexistent identifier attribute; has_permission?
called an undefined plural method and returned a truthy relation in every
case; and set_permission mutated granted without saving. Nothing outside the
model referenced it and the table was empty.
Diffstat (limited to 'test')
| -rw-r--r-- | test/fixtures/permissions.yml | 7 | ||||
| -rw-r--r-- | test/models/permission_test.rb | 8 |
2 files changed, 0 insertions, 15 deletions
diff --git a/test/fixtures/permissions.yml b/test/fixtures/permissions.yml deleted file mode 100644 index 5bf02933..00000000 --- a/test/fixtures/permissions.yml +++ /dev/null | |||
| @@ -1,7 +0,0 @@ | |||
| 1 | # Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html | ||
| 2 | |||
| 3 | # one: | ||
| 4 | # column: value | ||
| 5 | # | ||
| 6 | # two: | ||
| 7 | # column: value | ||
diff --git a/test/models/permission_test.rb b/test/models/permission_test.rb deleted file mode 100644 index 08fcc0be..00000000 --- a/test/models/permission_test.rb +++ /dev/null | |||
| @@ -1,8 +0,0 @@ | |||
| 1 | require 'test_helper' | ||
| 2 | |||
| 3 | class PermissionTest < ActiveSupport::TestCase | ||
| 4 | # Replace this with your real tests. | ||
| 5 | test "the truth" do | ||
| 6 | assert true | ||
| 7 | end | ||
| 8 | end | ||
