summaryrefslogtreecommitdiff
path: root/spec/httpunix_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/httpunix_spec.rb')
-rw-r--r--spec/httpunix_spec.rb11
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