spec/pushpad/subscription_spec.rb in pushpad-0.11.0 vs spec/pushpad/subscription_spec.rb in pushpad-0.11.1
- old
+ new
@@ -1,17 +1,17 @@
require "spec_helper"
module Pushpad
describe Subscription do
def stub_subscriptions_head(options)
- stub_request(:head, "https://pushpad.xyz/projects/#{options[:project_id]}/subscriptions").
+ stub_request(:head, "https://pushpad.xyz/api/v1/projects/#{options[:project_id]}/subscriptions").
with(query: hash_including(options.fetch(:query, {}))).
to_return(status: 200,
headers: { "X-Total-Count" => options.fetch(:total_count, 10) })
end
def stub_failing_subscriptions_head(options)
- stub_request(:head, "https://pushpad.xyz/projects/#{options[:project_id]}/subscriptions").
+ stub_request(:head, "https://pushpad.xyz/api/v1/projects/#{options[:project_id]}/subscriptions").
to_return(status: 503)
end
describe ".count" do
it "returns value from X-Total-Count header" do