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 typo in example name #780

Merged
merged 1 commit into from
Mar 30, 2023
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
6 changes: 3 additions & 3 deletions spec/httparty/response_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@
it "should set code" do
expect(@response.code).to eq(@response_object.code)
end

it "should set code as an Integer" do
expect(@response.code).to be_a(Integer)
end

it "should set http_version" do
unparseable_body = lambda { raise "Unparseable" }
unparseable_response = HTTParty::Response.new(@request_object, @response_object, unparseable_body)
Expand Down Expand Up @@ -100,7 +100,7 @@
expect(response['foo']).to eq('bar')
end

it "response to request" do
it "responds to request" do
response = HTTParty::Response.new(@request_object, @response_object, @parsed_response)
expect(response.respond_to?(:request)).to be_truthy
end
Expand Down