summaryrefslogtreecommitdiff
path: root/spec/gitlab_config_spec.rb
diff options
context:
space:
mode:
authorNick Thomas <nick@gitlab.com>2018-08-16 12:58:50 +0000
committerNick Thomas <nick@gitlab.com>2018-08-16 12:58:50 +0000
commitfb8606f65a60808e52539f71f09fba871b5aba6b (patch)
treefffd9f99b45b063e318c0e954116c98647737ef9 /spec/gitlab_config_spec.rb
parent122d84a403d3534dea743d94aa23d4115cc804a8 (diff)
parent710f75186009cb85c996d0de723ec3524299ecd8 (diff)
downloadgitlab-shell-fb8606f65a60808e52539f71f09fba871b5aba6b.tar.gz
Merge branch 'rs-rspec' into 'master'
Update to RSpec 3 Closes #54 See merge request gitlab-org/gitlab-shell!229
Diffstat (limited to 'spec/gitlab_config_spec.rb')
-rw-r--r--spec/gitlab_config_spec.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/gitlab_config_spec.rb b/spec/gitlab_config_spec.rb
index a1c52a0..c262116 100644
--- a/spec/gitlab_config_spec.rb
+++ b/spec/gitlab_config_spec.rb
@@ -9,27 +9,27 @@ describe GitlabConfig do
subject { config.gitlab_url }
before { config.send(:config)['gitlab_url'] = url }
- it { should_not be_empty }
- it { should eq(url) }
+ it { is_expected.not_to be_empty }
+ it { is_expected.to eq(url) }
context 'remove trailing slashes' do
before { config.send(:config)['gitlab_url'] = url + '//' }
- it { should eq(url) }
+ it { is_expected.to eq(url) }
end
end
describe :audit_usernames do
subject { config.audit_usernames }
- it("returns false by default") { should eq(false) }
+ it("returns false by default") { is_expected.to eq(false) }
end
describe :log_format do
subject { config.log_format }
it 'returns "text" by default' do
- should eq('text')
+ is_expected.to eq('text')
end
end
end