mirror of
https://github.com/indentlabs/notebook.git
synced 2025-10-26 11:19:22 +00:00
Merge branch 'master' into dependabot/bundler/ruby-prof-0.18.0
This commit is contained in:
commit
3a18319931
@ -198,14 +198,14 @@ RSpec.describe SubscriptionsController, type: :controller do
|
||||
|
||||
describe "Premium Permissions" do
|
||||
it "allows Premium users to create core content types" do
|
||||
@user.update(selected_billing_plan_id: @premium_plan.id)
|
||||
@user.update(selected_billing_plan_id: 4)
|
||||
expect(@user.can_create?(Character)).to eq(true)
|
||||
expect(@user.can_create?(Location)).to eq(true)
|
||||
expect(@user.can_create?(Item)).to eq(true)
|
||||
end
|
||||
|
||||
it "allows Premium users to create extended content types" do
|
||||
@user.update(selected_billing_plan_id: @premium_plan.id)
|
||||
@user.update(selected_billing_plan_id: 4)
|
||||
expect(@user.can_create?(Creature)).to eq(true)
|
||||
expect(@user.can_create?(Race)).to eq(true)
|
||||
expect(@user.can_create?(Religion)).to eq(true)
|
||||
@ -216,7 +216,7 @@ RSpec.describe SubscriptionsController, type: :controller do
|
||||
end
|
||||
|
||||
it "allows Premium users to create collective content types" do
|
||||
@user.update(selected_billing_plan_id: @premium_plan.id)
|
||||
@user.update(selected_billing_plan_id: 4)
|
||||
expect(@user.can_create?(Scene)).to eq(true)
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
Reference in New Issue
Block a user