spec/mushikago/http/request_spec.rb in mushikago-sdk-0.3.7 vs spec/mushikago/http/request_spec.rb in mushikago-sdk-0.4.0

- old
+ new

@@ -18,21 +18,19 @@ @request['timestamp'] = '2011-09-01T00:00:00Z' end subject{ @request } - it{ should respond_to(:http_method) } it{ should respond_to(:host, :host=) } it{ should respond_to(:port, :port=) } it{ should respond_to(:path, :path=) } it{ should respond_to(:headers) } it{ should respond_to(:params) } it{ should respond_to(:[]=) } it{ should respond_to(:[]) } - its(:http_method){ should == 'GET' } its(:host){ should == 'tombo.ap-northeast-1.mushikago.org' } - its('port.to_i'){ should == 80 } + its(:port){ should be_nil } its(:path){ should == '/1/list.json' } its(:headers){ should be_a_kind_of(Hash) } it 'header["hoge"] should "fuga"' do subject.headers['hoge'].should == 'fuga' end its(['param1']){ should == 'p1' } its(['param2']){ should == 'p2' }