Sha256: be6d8a74c8a9a12f117a9e87b907fb3cefb8ef38ebb05a6836cb25f4c76725c7

Contents?: true

Size: 466 Bytes

Versions: 55

Compression:

Stored size: 466 Bytes

Contents

require 'test/unit'
require 'oauth/signature'
require 'oauth/request_proxy/mock_request'


class OAuthCase < Test::Unit::TestCase
  # avoid whining about a lack of tests
  def run(*args)
    return if @method_name.to_s == "default_test"
    super
  end
  
  protected
  
  # Creates a fake request
  def request(params={},method='GET',uri="http://photos.example.net/photos")
    OAuth::RequestProxy.proxy({'parameters'=>params,'method'=>method,'uri'=>uri})
  end
end

Version data entries

55 entries across 55 versions & 19 rubygems

Version Path
greut-oauth-0.3.6 test/cases/oauth_case.rb
jwhitmire-oauth-0.3.6.1 test/cases/oauth_case.rb
metavida-oauth-0.3.2.1 test/cases/oauth_case.rb
metavida-oauth-0.3.2 test/cases/oauth_case.rb
mojodna-oauth-0.3.1.1 test/cases/oauth_case.rb
mojodna-oauth-0.3.1.2 test/cases/oauth_case.rb
mojodna-oauth-0.3.1.3 test/cases/oauth_case.rb
mojodna-oauth-0.3.1.4 test/cases/oauth_case.rb
mojodna-oauth-0.3.1.5 test/cases/oauth_case.rb
mojodna-oauth-0.3.1.6 test/cases/oauth_case.rb
mojodna-oauth-0.3.1.7 test/cases/oauth_case.rb
mojodna-oauth-0.3.1.8 test/cases/oauth_case.rb
mojodna-oauth-0.3.2.1 test/cases/oauth_case.rb
mojodna-oauth-0.3.2.2 test/cases/oauth_case.rb
mojodna-oauth-0.3.2 test/cases/oauth_case.rb
mojodna-oauth-0.3.3 test/cases/oauth_case.rb
mojodna-oauth-0.3.4.1 test/cases/oauth_case.rb
mojodna-oauth-0.3.4 test/cases/oauth_case.rb
mojodna-oauth-0.3.5 test/cases/oauth_case.rb
mojodna-oauth-0.3.6 test/cases/oauth_case.rb