OSDN Git Service

Remove unnecessary user from test
authorJacob Vosmaer <contact@jacobvosmaer.nl>
Tue, 2 Jul 2013 11:39:13 +0000 (13:39 +0200)
committerJacob Vosmaer <contact@jacobvosmaer.nl>
Wed, 17 Jul 2013 13:17:17 +0000 (15:17 +0200)
spec/models/key_spec.rb

index 6c06f52..fcf2cb9 100644 (file)
@@ -49,10 +49,8 @@ describe Key do
   end
 
   context "validate it is a fingerprintable key" do
-    let(:user) { create(:user) }
-
     it "accepts the fingerprintable key" do
-      build(:key, user: user).should be_valid
+      build(:key).should be_valid
     end
 
     it "rejects the unfingerprintable key (contains space in middle)" do