spec/lib/auth0/api/v2/stats_spec.rb in auth0-5.6.1 vs spec/lib/auth0/api/v2/stats_spec.rb in auth0-5.7.0
- old
+ new
@@ -13,10 +13,10 @@
end
end
context '.daily_stats' do
it { expect(@instance).to respond_to(:daily_stats) }
it 'expect client to send get to /api/v2/stats/daily' do
- expect(@instance).to receive(:get).with('/api/v2/stats/daily', from: '20120222', to: '20151222')
+ expect(@instance).to receive(:get).with('/api/v2/stats/daily', { from: '20120222', to: '20151222' })
expect { @instance.daily_stats('20120222', '20151222') }.not_to raise_error
end
end
end