diff options
author | Ash McKenzie <amckenzie@gitlab.com> | 2018-07-26 18:22:23 +1000 |
---|---|---|
committer | Ash McKenzie <amckenzie@gitlab.com> | 2018-08-01 00:24:16 +1000 |
commit | c8df6bcf6ff4288ddb9bf063195eae28cccc1860 (patch) | |
tree | 3289d5b2c8433c69b24fde305cd8df25b759a741 /spec/gitlab_lfs_authentication_spec.rb | |
parent | f2eb95f00cc36108f66afbff1481a9354eca35e1 (diff) | |
download | gitlab-shell-c8df6bcf6ff4288ddb9bf063195eae28cccc1860.tar.gz |
Fix some rspec deprecations
Diffstat (limited to 'spec/gitlab_lfs_authentication_spec.rb')
-rw-r--r-- | spec/gitlab_lfs_authentication_spec.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/gitlab_lfs_authentication_spec.rb b/spec/gitlab_lfs_authentication_spec.rb index 9e93a07..5516bb5 100644 --- a/spec/gitlab_lfs_authentication_spec.rb +++ b/spec/gitlab_lfs_authentication_spec.rb @@ -16,22 +16,22 @@ describe GitlabLfsAuthentication do end describe '#build_from_json' do - it { subject.username.should == 'dzaporozhets' } - it { subject.lfs_token.should == 'wsnys8Zm8Jn7zyhHTAAK' } - it { subject.repository_http_path.should == 'http://gitlab.dev/repo' } + it { expect(subject.username).to eql 'dzaporozhets' } + it { expect(subject.lfs_token).to eql 'wsnys8Zm8Jn7zyhHTAAK' } + it { expect(subject.repository_http_path).to eql 'http://gitlab.dev/repo' } end describe '#authentication_payload' do result = "{\"header\":{\"Authorization\":\"Basic ZHphcG9yb3poZXRzOndzbnlzOFptOEpuN3p5aEhUQUFL\"},\"href\":\"http://gitlab.dev/repo/info/lfs/\"}" - it { subject.authentication_payload.should eq(result) } + it { expect(subject.authentication_payload).to eq(result) } it 'should be a proper JSON' do payload = subject.authentication_payload json_payload = JSON.parse(payload) - json_payload['header']['Authorization'].should eq('Basic ZHphcG9yb3poZXRzOndzbnlzOFptOEpuN3p5aEhUQUFL') - json_payload['href'].should eq('http://gitlab.dev/repo/info/lfs/') + expect(json_payload['header']['Authorization']).to eq('Basic ZHphcG9yb3poZXRzOndzbnlzOFptOEpuN3p5aEhUQUFL') + expect(json_payload['href']).to eq('http://gitlab.dev/repo/info/lfs/') end end end |