Fix pro_membership_spec's lint (#4193) [ci skip]
This commit is contained in:
parent
a9e1e71e1f
commit
00b602364e
1 changed files with 2 additions and 2 deletions
|
|
@ -20,7 +20,7 @@ RSpec.describe ProMembership, type: :model do
|
|||
|
||||
describe "defaults" do
|
||||
it "has the correct defaults" do
|
||||
pm = ProMembership.new
|
||||
pm = described_class.new
|
||||
expect(pm.status).to eq("active")
|
||||
expect(pm.expires_at).to be(nil)
|
||||
expect(pm.expiration_notification_at).to be(nil)
|
||||
|
|
@ -32,7 +32,7 @@ RSpec.describe ProMembership, type: :model do
|
|||
describe "creation" do
|
||||
it "sets expires_at to a month from now" do
|
||||
Timecop.freeze(Time.current) do
|
||||
pm = ProMembership.create!(user: create(:user))
|
||||
pm = described_class.create!(user: create(:user))
|
||||
expect(pm.expires_at.to_i).to eq(1.month.from_now.to_i)
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue