Skip to content

Commit 00b6023

Browse files
lightalloymaestromac
authored andcommittedOct 2, 2019
Fix pro_membership_spec's lint (#4193) [ci skip]
1 parent a9e1e71 commit 00b6023

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎spec/models/pro_membership_spec.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
describe "defaults" do
2222
it "has the correct defaults" do
23-
pm = ProMembership.new
23+
pm = described_class.new
2424
expect(pm.status).to eq("active")
2525
expect(pm.expires_at).to be(nil)
2626
expect(pm.expiration_notification_at).to be(nil)
@@ -32,7 +32,7 @@
3232
describe "creation" do
3333
it "sets expires_at to a month from now" do
3434
Timecop.freeze(Time.current) do
35-
pm = ProMembership.create!(user: create(:user))
35+
pm = described_class.create!(user: create(:user))
3636
expect(pm.expires_at.to_i).to eq(1.month.from_now.to_i)
3737
end
3838
end

0 commit comments

Comments
 (0)