Skip to content

Commit

Permalink
rake standard:fix
Browse files Browse the repository at this point in the history
  • Loading branch information
leklund committed Jan 16, 2024
1 parent 2cd6e1e commit 2640db5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions .standard.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ruby_version: 2.7
1 change: 0 additions & 1 deletion fastly_nsq.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ Gem::Specification.new do |gem|
gem.files = `git ls-files`.split("\n")

gem.executables = gem.files.grep(%r{^bin/}).map { |f| File.basename(f) }
gem.test_files = gem.files.grep(%r{^(test|features)/})
gem.require_paths = ["lib"]

gem.add_development_dependency "awesome_print", "~> 1.6"
Expand Down
4 changes: 2 additions & 2 deletions spec/http/nsqd_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,15 @@
stub_request(:post, url)
data = {topic: "lol"}

FastlyNsq::Http::Nsqd.send("topic_#{verb}".to_sym, topic: "lol", base_uri: base_uri)
FastlyNsq::Http::Nsqd.send(:"topic_#{verb}", topic: "lol", base_uri: base_uri)

expect(a_request(:post, url).with(query: data)).to have_been_requested

url = "#{base_uri}/channel/#{verb}?topic=lol&channel=foo"
stub_request(:post, url)
data = {topic: "lol", channel: "foo"}

FastlyNsq::Http::Nsqd.send("channel_#{verb}".to_sym, topic: "lol", channel: "foo", base_uri: base_uri)
FastlyNsq::Http::Nsqd.send(:"channel_#{verb}", topic: "lol", channel: "foo", base_uri: base_uri)

expect(a_request(:post, url).with(query: data)).to have_been_requested
end
Expand Down

0 comments on commit 2640db5

Please sign in to comment.