summaryrefslogtreecommitdiff
path: root/spec/models/key_spec.rb
diff options
context:
space:
mode:
authorVincent Bonmalais <vb.kouno@gmail.com>2012-11-06 14:31:55 +1100
committerVincent Bonmalais <vb.kouno@gmail.com>2012-11-13 22:27:45 +1100
commit80fb38de7abdfacbf5ad2e0150b934c1392721f0 (patch)
tree302ee55b21e8206ab44cef819a583803b9bb0c6f /spec/models/key_spec.rb
parentd52f06f38013540a9798686aa37c4dad120c3d74 (diff)
downloadgitlab-ce-80fb38de7abdfacbf5ad2e0150b934c1392721f0.tar.gz
Remove backward compatibility of factories.
Diffstat (limited to 'spec/models/key_spec.rb')
-rw-r--r--spec/models/key_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/key_spec.rb b/spec/models/key_spec.rb
index d3231af88bc..80dfff08397 100644
--- a/spec/models/key_spec.rb
+++ b/spec/models/key_spec.rb
@@ -53,7 +53,7 @@ describe Key do
end
context "as a personal key" do
- let(:user) { Factory.create(:user) }
+ let(:user) { create(:user) }
it "accepts the key once" do
build(:key, user: user).should be_valid
@@ -67,7 +67,7 @@ describe Key do
end
context "validate it is a fingerprintable key" do
- let(:user) { Factory.create(:user) }
+ let(:user) { create(:user) }
it "accepts the fingerprintable key" do
build(:key, user: user).should be_valid