spec/lib/puppetdb/client_spec.rb in hieracles-0.2.2 vs spec/lib/puppetdb/client_spec.rb in hieracles-0.3.0
- old
+ new
@@ -24,11 +24,11 @@
end
describe '.request' do
context 'with a GET request' do
let(:client) { Hieracles::Puppetdb::Client.new Hash.new }
- let(:request) { client.request('endpoint', 'get')}
+ let(:request) { client.request('endpoint')}
let(:response) { Hieracles::Puppetdb::Response.new(Hash.new, 0, Array.new) }
before {
resp = double
allow(resp).
to receive(:code).
@@ -47,10 +47,10 @@
end
describe '.get_request' do
let(:client) { Hieracles::Puppetdb::Client.new Hash.new }
context 'without query' do
- let(:request) { client.request('endpoint', 'get')}
+ let(:request) { client.request('endpoint')}
before {
allow(client.class).
to receive(:get).
and_return('ha')
}