rubymotion-community / BubbleWrap

Cocoa wrappers and helpers for RubyMotion (Ruby for iOS and OS X) - Making Cocoa APIs more Ruby like, one API at a time. Fork away and send your pull requests
Other
1.18k stars 208 forks source link

[query.rb] weird issue with payload with false value #261

Closed bogardon closed 11 years ago

bogardon commented 11 years ago
describe "false value" do
  before do
    @query = BubbleWrap::HTTP::Query.new("http://www.google.com", :get, {payload: {following: false}})
  end

  it "should have right url" do
    @query.request.URL.absoluteString.should == "http://www.google.com?following=false"
  end
end

just putting this here for now while i figure out why this is happening. btw it works if you use true.

bogardon commented 11 years ago

the issue is in query#escape where it checks to see if string exists.