Sha256: a12cba76958882664fb28425d983afba3107fe45f028e23f4d8968dda55dbfd1

Contents?: true

Size: 621 Bytes

Versions: 3

Compression:

Stored size: 621 Bytes

Contents

require 'rubygems'
require 'sinatra'
require 'rack/test'
require 'typhoeus'
require 'koala'

require File.join(File.dirname(__FILE__), '..', 'lib', 'oauth_playground.rb')
require File.join(File.dirname(__FILE__), '..', 'lib', 'load_facebook.rb')

OAuthPlayground.set(
  :environment => :test,
  :run => false,
  :raise_errors => true,
  :logging => false
)

module TestHelper
  
  def app
    # change to your app class if using the 'classy' style
    OAuthPlayground
  end
  
  def body
    last_response.body
  end
  
  def status
    last_response.status
  end
  
  include Rack::Test::Methods

end

include TestHelper

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
koala-0.9.0 examples/oauth_playground/spec/spec_helper.rb
koala-0.7.3 examples/oauth_playground/spec/spec_helper.rb
koala-0.7.2 examples/oauth_playground/spec/spec_helper.rb