Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

+ Unit test for merging EndPoint and request params

  • Loading branch information...
commit 7365255a8c614d10fb0ab99506be4d17725e6736 1 parent 329f3dc
Dirk Geurs Dirklectisch authored

Showing 1 changed file with 23 additions and 0 deletions. Show diff stats Hide diff stats

  1. +23 0 test/merge_test.rb
23 test/merge_test.rb
... ... @@ -0,0 +1,23 @@
  1 +
  2 +require File.dirname(__FILE__) + '/base.rb'
  3 +
  4 +
  5 +class MergeTest < Test::Unit::TestCase
  6 +
  7 + include Rufus::Verbs
  8 +
  9 +
  10 + def test_0
  11 +
  12 + ep = EndPoint.new(
  13 + :dry_run => true,
  14 + :uri => 'http://host/path',
  15 + :params => { 'token' => 'apiaccess'})
  16 +
  17 + req = ep.get(
  18 + :params => { 'extra' => 'param'})
  19 +
  20 + assert_equal "/path?token=apiaccess&extra=param", req.path
  21 +
  22 + end
  23 +end

0 comments on commit 7365255

Please sign in to comment.
Something went wrong with that request. Please try again.