Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Vosmaer <contact@jacobvosmaer.nl>2013-07-02 15:39:13 +0400
committerJacob Vosmaer <contact@jacobvosmaer.nl>2013-07-17 17:17:17 +0400
commit3ada8f45c7a719a95864b3ee2c1acdfdf4468eaa (patch)
treed7e391f697b1938698e95a409656daf33ecd10df /spec/models/key_spec.rb
parentdcac37d9e41f21485822647b922ac952bf64358a (diff)
Remove unnecessary user from test
Diffstat (limited to 'spec/models/key_spec.rb')
-rw-r--r--spec/models/key_spec.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/spec/models/key_spec.rb b/spec/models/key_spec.rb
index 6c06f5268b3..fcf2cb9f30d 100644
--- a/spec/models/key_spec.rb
+++ b/spec/models/key_spec.rb
@@ -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