Skip to content

Commit

Permalink
Add test for more exotic URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
arsduo committed Jul 21, 2012
1 parent 4f91cb8 commit 58feaa7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions spec/cases/graph_collection_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,12 @@
args_hash = {"one" => "val_one", "two" => "val_two"}
Koala::Facebook::GraphCollection.parse_page_url("http://facebook.com/#{base}?#{args_hash.map {|k,v| "#{k}=#{v}" }.join("&")}").should == [base, args_hash]
end

it "works with addresses with irregular characters" do
access_token = "appid123a|fdcba"
base, args_hash = Koala::Facebook::GraphCollection.parse_page_url("http://facebook.com/foo?token=#{access_token}")
args_hash["token"].should == access_token
end
end
end

Expand Down

0 comments on commit 58feaa7

Please sign in to comment.