diff options
author | Nick Thomas <nick@gitlab.com> | 2018-08-16 12:58:50 +0000 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2018-08-16 12:58:50 +0000 |
commit | fb8606f65a60808e52539f71f09fba871b5aba6b (patch) | |
tree | fffd9f99b45b063e318c0e954116c98647737ef9 /spec/httpunix_spec.rb | |
parent | 122d84a403d3534dea743d94aa23d4115cc804a8 (diff) | |
parent | 710f75186009cb85c996d0de723ec3524299ecd8 (diff) | |
download | gitlab-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/httpunix_spec.rb')
-rw-r--r-- | spec/httpunix_spec.rb | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/spec/httpunix_spec.rb b/spec/httpunix_spec.rb index b49bc0a..719a855 100644 --- a/spec/httpunix_spec.rb +++ b/spec/httpunix_spec.rb @@ -6,10 +6,13 @@ describe URI::HTTPUNIX do uri = URI::parse('http+unix://%2Fpath%2Fto%2Fsocket/img.jpg') subject { uri } - it { should be_an_instance_of(URI::HTTPUNIX) } - its(:scheme) { should eq('http+unix') } - its(:hostname) { should eq('/path/to/socket') } - its(:path) { should eq('/img.jpg') } + it { is_expected.to be_an_instance_of(URI::HTTPUNIX) } + + it 'has the correct attributes' do + expect(subject.scheme).to eq('http+unix') + expect(subject.hostname).to eq('/path/to/socket') + expect(subject.path).to eq('/img.jpg') + end end end |