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.rb9
1 files changed, 6 insertions, 3 deletions
diff --git a/spec/httpunix_spec.rb b/spec/httpunix_spec.rb
index 0a8eb06..719a855 100644
--- a/spec/httpunix_spec.rb
+++ b/spec/httpunix_spec.rb
@@ -7,9 +7,12 @@ describe URI::HTTPUNIX do
subject { uri }
it { is_expected.to 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 '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