Sha256: e173f27e8255a19177e5eaccefce4f9b9ecea1c9cb71e5815dd4bd1b3a393d15

Contents?: true

Size: 552 Bytes

Versions: 13

Compression:

Stored size: 552 Bytes

Contents

require "rubygems"
require "bundler"
Bundler.setup

$:.unshift File.expand_path("../../lib", __FILE__)
require "rack-pjax"

Bundler.require(:test)

# helpers ripped from wycat's Rack::Offline
# (https://github.com/wycats/rack-offline/blob/master/spec/spec_helper.rb)
module Rack::Test::Methods
  def self.included(klass)
    class << klass
      attr_accessor :app
    end
  end

  def body
    last_response.body
  end

  def status
    last_response.status
  end

  def headers
    last_response.headers
  end

  def app
    self.class.app
  end
end

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/rack-pjax-0.8.0/spec/spec_helper.rb
rack-pjax-0.8.0 spec/spec_helper.rb
rack-pjax-0.7.0 spec/spec_helper.rb
rack-pjax-0.6.0 spec/spec_helper.rb
rack-pjax-0.6.0.beta spec/spec_helper.rb
rack-pjax-0.5.9 spec/spec_helper.rb
rack-pjax-0.5.8 spec/spec_helper.rb
rack-pjax-0.5.7 spec/spec_helper.rb
rack-pjax-0.5.6 spec/spec_helper.rb
rack-pjax-0.5.5 spec/spec_helper.rb
rack-pjax-0.5.4 spec/spec_helper.rb
rack-pjax-0.5.3 spec/spec_helper.rb
rack-pjax-0.5.2 spec/spec_helper.rb