Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix website_spec.rb spec descriptions #177

Merged
merged 1 commit into from
Sep 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions spec/values/website_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
context "and the string starts with 'http://'" do
let(:scheme) { 'http' }

it "must return a Values::Website object with a 'http' scheme, host, and port of 443" do
it "must return a Values::Website object with a 'http' scheme, host, and port of 80" do
value = subject.parse(string)

expect(value).to be_kind_of(Ronin::Recon::Values::Website)
Expand Down Expand Up @@ -128,23 +128,23 @@
context "but the other Website object has a different #scheme" do
let(:other) { described_class.new('https',host,port) }

it "must return true" do
it "must return false" do
expect(subject.eql?(other)).to be(false)
end
end

context "but the other Website object has a different #host" do
let(:other) { described_class.new(scheme,'other.com',port) }

it "must return true" do
it "must return false" do
expect(subject.eql?(other)).to be(false)
end
end

context "but the other Website object has a different #port" do
let(:other) { described_class.new(scheme,host,8000) }

it "must return true" do
it "must return false" do
expect(subject.eql?(other)).to be(false)
end
end
Expand Down