diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2016-06-08 14:46:41 +0800 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2016-06-09 16:00:24 +0800 |
commit | de04004803b76cb9945ef027d04968cef7b41b2b (patch) | |
tree | 7e8e53388663fedb07f6779d2fba813cdf8cd7ab /spec | |
parent | 9e14ebe6bce26fc16b7310b61870f41747e83d14 (diff) | |
download | gitlab-ce-de04004803b76cb9945ef027d04968cef7b41b2b.tar.gz |
Prefer string for describe, feedback from:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/4093#note_12321029
Diffstat (limited to 'spec')
-rw-r--r-- | spec/models/ci/runner_spec.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/models/ci/runner_spec.rb b/spec/models/ci/runner_spec.rb index 1e87d7751b8..c3b715dcb92 100644 --- a/spec/models/ci/runner_spec.rb +++ b/spec/models/ci/runner_spec.rb @@ -36,7 +36,7 @@ describe Ci::Runner, models: true do end end - describe :assign_to do + describe '#assign_to' do let!(:project) { FactoryGirl.create :empty_project } let!(:shared_runner) { FactoryGirl.create(:ci_runner, :shared) } @@ -49,7 +49,7 @@ describe Ci::Runner, models: true do it { expect(shared_runner.only_for?(project)).to be_truthy } end - describe :online do + describe '.online' do subject { Ci::Runner.online } before do @@ -60,7 +60,7 @@ describe Ci::Runner, models: true do it { is_expected.to eq([@runner2])} end - describe :online? do + describe '#online?' do let(:runner) { FactoryGirl.create(:ci_runner, :shared) } subject { runner.online? } @@ -90,7 +90,7 @@ describe Ci::Runner, models: true do end end - describe :status do + describe '#status' do let(:runner) { FactoryGirl.create(:ci_runner, :shared, contacted_at: 1.second.ago) } subject { runner.status } @@ -128,7 +128,7 @@ describe Ci::Runner, models: true do end end - describe :specific_for do + describe '.specific_for' do let(:runner) { create(:ci_runner) } let(:project) { create(:project) } let(:another_project) { create(:project) } |