* Set up basic /manage route * Add basic article manage page * Add tips and finalize permissions for /manage * Add final test and add manage button to article show * Update failing specs
13 lines
290 B
Ruby
13 lines
290 B
Ruby
require "rails_helper"
|
|
|
|
RSpec.describe BufferUpdatePolicy do
|
|
subject { described_class.new(user, article) }
|
|
|
|
let(:article) { build(:article) }
|
|
|
|
context "when user is trusted" do
|
|
let(:user) { build(:user, :trusted) }
|
|
|
|
it { is_expected.to permit_actions(%i[create]) }
|
|
end
|
|
end
|