summaryrefslogtreecommitdiff
path: root/spec/models/deploy_key_spec.rb
diff options
context:
space:
mode:
authorToon Claes <toon@gitlab.com>2019-02-28 19:57:34 +0100
committerToon Claes <toon@gitlab.com>2019-02-28 19:57:34 +0100
commit62d7990b9bb30cf33ed87017c5c633d1cccc75c2 (patch)
treec3e1b69c58a412ba1c6f50a0337a23d9f9d6e1a4 /spec/models/deploy_key_spec.rb
parentf6453eca992a9c142268e78ac782cef98110d183 (diff)
downloadgitlab-ce-tc-standard-gem.tar.gz
Ran standardrb --fix on the whole codebasetc-standard-gem
Inspired by https://twitter.com/searls/status/1101137953743613952 I decided to try https://github.com/testdouble/standard on our codebase. It's opinionated, but at least it's a _standard_.
Diffstat (limited to 'spec/models/deploy_key_spec.rb')
-rw-r--r--spec/models/deploy_key_spec.rb16
1 files changed, 8 insertions, 8 deletions
diff --git a/spec/models/deploy_key_spec.rb b/spec/models/deploy_key_spec.rb
index 41440c6d288..d03a3c051eb 100644
--- a/spec/models/deploy_key_spec.rb
+++ b/spec/models/deploy_key_spec.rb
@@ -1,4 +1,4 @@
-require 'spec_helper'
+require "spec_helper"
describe DeployKey, :mailer do
describe "Associations" do
@@ -6,10 +6,10 @@ describe DeployKey, :mailer do
it { is_expected.to have_many(:projects) }
end
- describe 'notification' do
+ describe "notification" do
let(:user) { create(:user) }
- it 'does not send a notification' do
+ it "does not send a notification" do
perform_enqueued_jobs do
create(:deploy_key, user: user)
end
@@ -18,22 +18,22 @@ describe DeployKey, :mailer do
end
end
- describe '#user' do
+ describe "#user" do
let(:deploy_key) { create(:deploy_key) }
let(:user) { create(:user) }
- context 'when user is set' do
+ context "when user is set" do
before do
deploy_key.user = user
end
- it 'returns the user' do
+ it "returns the user" do
expect(deploy_key.user).to be(user)
end
end
- context 'when user is not set' do
- it 'returns the ghost user' do
+ context "when user is not set" do
+ it "returns the ghost user" do
expect(deploy_key.user).to eq(User.ghost)
end
end