Sha256: ac64601fca62cab40db6bb58b9cb224e9069dc380c9ff4cb18e88771e80e8165
Contents?: true
Size: 1.05 KB
Versions: 2
Compression:
Stored size: 1.05 KB
Contents
require 'spec_helper' require 'mirage/client' describe Mirage::Request do Request = Mirage::Request it 'delete a request' do request_url = "url" Request.should_receive(:delete).with(request_url) request = Request.new request.request_url = request_url request.delete end it 'should load request data' do request_url = "url" trigger_url = "trigger url" body = "body" parameters = {"name" => "joe"} headers = {"header" => "value"} request_json = { body: body, headers: headers, parameters: parameters, request_url: trigger_url } Request.should_receive(:backedup_get).with(request_url,format: :json).and_return(request_json) request = Request.get(request_url) request.headers.should == headers request.body.should == body request.request_url.should == trigger_url request.parameters.should == parameters end it 'should contain parameters' do end it 'should contain the request body' do end it 'should contain the triggering url' do end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mirage-3.0.0.alpha.2 | spec/client/request_spec.rb |
mirage-3.0.0.alpha.1 | spec/client/request_spec.rb |