Commit 3ada8f45c7a719a95864b3ee2c1acdfdf4468eaa

Authored by Jacob Vosmaer
1 parent dcac37d9

Remove unnecessary user from test

Showing 1 changed file with 1 additions and 3 deletions   Show diff stats
spec/models/key_spec.rb
@@ -49,10 +49,8 @@ describe Key do @@ -49,10 +49,8 @@ describe Key do
49 end 49 end
50 50
51 context "validate it is a fingerprintable key" do 51 context "validate it is a fingerprintable key" do
52 - let(:user) { create(:user) }  
53 -  
54 it "accepts the fingerprintable key" do 52 it "accepts the fingerprintable key" do
55 - build(:key, user: user).should be_valid 53 + build(:key).should be_valid
56 end 54 end
57 55
58 it "rejects the unfingerprintable key (contains space in middle)" do 56 it "rejects the unfingerprintable key (contains space in middle)" do