Sha256: 0daf7a96d1fcca8dc7f32c4f0b2853733833fa4e647af1ea01b2104cc728deba
Contents?: true
Size: 753 Bytes
Versions: 3
Compression:
Stored size: 753 Bytes
Contents
require File.join(File.dirname(__FILE__), 'test_helper') require 'boson/more_commands' describe "WebCore" do it "#get with no options" do request = mock { expects(:request).with({}) } Commands::WebCore::Get.expects(:new).with('blah.com').returns(request) Commands::WebCore.get 'blah.com' end it "#post with no options" do Net::HTTP.expects(:post_form).with(anything, {}).returns(nil) Commands::WebCore.post 'blah.com' end it "#build_url with string params" do Commands::WebCore.build_url('ababd.com', :q=>'search').should == 'ababd.com?q=search' end it "#build_url with array params" do Commands::WebCore.build_url('ababd.com', :q=>%w{multi word search}).should == 'ababd.com?q=multi+word+search' end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
boson-more-0.3.1 | test/web_test.rb |
boson-more-0.3.0 | test/web_test.rb |
boson-more-0.2.2 | test/web_test.rb |