* Fix lint * Add pundit-matchers gem * Strengthen ArticlePolicy & create spec * Change ApplicationPolicy to a closed system * Globally handle pundit's NotAuthorizedError * Fix lint * Adjust /new's authorization
9 lines
165 B
Ruby
9 lines
165 B
Ruby
module WithinBlockIsExpected
|
|
def within_block_is_expected
|
|
expect { subject }
|
|
end
|
|
end
|
|
|
|
RSpec.configure do |config|
|
|
config.include WithinBlockIsExpected
|
|
end
|