Sha256: 8c0bf4cb9c44dabf7377356e38e9228fc2ea31a4a301b226ba5c846f00b97c50
Contents?: true
Size: 785 Bytes
Versions: 3
Compression:
Stored size: 785 Bytes
Contents
require 'spec_helper' require 'xway/api/request' describe Xway::Api::Request do subject { described_class.new 'get', '/foo' } its('method_name') { should eq 'get' } its('path') { should eq '/foo' } its('headers') { should eq('X-App' => 'appway') } its('body') { should eq nil } context 'with manifest' do let('manifest') { File.join(ASSETS_PATH, 'appway-example.json') } subject { described_class.new 'get', '/foo', manifest: manifest } its('method_name') { should eq 'get' } its('path') { should eq '/foo' } its('headers') { should eq('X-App' => 'appway', 'Content-Type' => 'application/json') } its('body.read') { should include('github.com/threez/appway-example') } end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
xway-0.0.3.beta | spec/lib/xway/api/request_spec.rb |
xway-0.0.2.beta | spec/lib/xway/api/request_spec.rb |
xway-0.0.1.beta | spec/lib/xway/api/request_spec.rb |