Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

+ Unit test for merging EndPoint and request params

  • Loading branch information...
commit 7365255a8c614d10fb0ab99506be4d17725e6736 1 parent 329f3dc
Dirk Geurs Dirklectisch authored
Showing with 23 additions and 0 deletions.
  1. +23 −0 test/merge_test.rb
23 test/merge_test.rb
View
@@ -0,0 +1,23 @@
+
+require File.dirname(__FILE__) + '/base.rb'
+
+
+class MergeTest < Test::Unit::TestCase
+
+ include Rufus::Verbs
+
+
+ def test_0
+
+ ep = EndPoint.new(
+ :dry_run => true,
+ :uri => 'http://host/path',
+ :params => { 'token' => 'apiaccess'})
+
+ req = ep.get(
+ :params => { 'extra' => 'param'})
+
+ assert_equal "/path?token=apiaccess&extra=param", req.path
+
+ end
+end
Please sign in to comment.
Something went wrong with that request. Please try again.