Skip to content

Commit

Permalink
plural problems!
Browse files Browse the repository at this point in the history
  • Loading branch information
one-m1nd committed Feb 28, 2024
1 parent d5c712f commit eff3daf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions lib/plants/resources/distributions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ def list_distributions
client.get('distributions')
end

# @param distributions [String]
# @param distribution [String]
# @return [::HTTP::Response]
def find_distributions(distributions)
client.get("distributions/#{distributions}")
def find_distribution(distribution)
client.get("distributions/#{distribution}")
end
end
end
Expand Down
4 changes: 2 additions & 2 deletions spec/plants_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -349,13 +349,13 @@
end
end

describe '.find_distributions' do
describe '.find_distribution' do
before(:each) do
stub_request(:get, "#{Plants::Client::URL}/distributions/foobar")
.to_return(status: 200, body: '{}')
end

subject { Plants.find_distributions('foobar') }
subject { Plants.find_distribution('foobar') }

it do
expect(subject).to be_instance_of(HTTP::Response)
Expand Down

0 comments on commit eff3daf

Please sign in to comment.