Sha256: 660e06b7632a9e5348bf6d32967162fb720075b607d6b9ddd3e8e83d78ea36da

Contents?: true

Size: 774 Bytes

Versions: 47

Compression:

Stored size: 774 Bytes

Contents

require 'rubygems'  unless RUBY_VERSION >= '1.9'
require 'test/unit'
require 'contest'
require 'ohm'
require 'haml'
require 'mocha'
require 'rack/test'
require 'nokogiri'
require 'sinatra/base'

$:.unshift File.expand_path('../../lib', __FILE__)
$:.unshift File.dirname(__FILE__)

require 'sinatra/support'

class Test::Unit::TestCase
  def settings
    @app ||= Sinatra::Application.new
  end

  def self.fixture_path(*a)
    fx *a
  end

  def fixture_path(*a)
    fx *a
  end

  def save_and_open_page
    f = Tempfile.new(['', '.html'])
    path = f.path
    f.close!
    f.unlink

    File.open(path, 'w') { |f| f.write last_response.body }

    system "open \"#{path}\""
  end
end

def fx(*a)
  root = File.expand_path('../fixtures', __FILE__)
  File.join root, a
end

Version data entries

47 entries across 47 versions & 2 rubygems

Version Path
classiccms-0.7.5 vendor/bundle/gems/sinatra-support-1.2.2/test/helper.rb
classiccms-0.7.4 vendor/bundle/gems/sinatra-support-1.2.2/test/helper.rb
classiccms-0.7.3 vendor/bundle/gems/sinatra-support-1.2.2/test/helper.rb
classiccms-0.7.2 vendor/bundle/gems/sinatra-support-1.2.2/test/helper.rb
classiccms-0.7.1 vendor/bundle/gems/sinatra-support-1.2.2/test/helper.rb
classiccms-0.7.0 vendor/bundle/gems/sinatra-support-1.2.2/test/helper.rb
classiccms-0.6.9 vendor/bundle/gems/sinatra-support-1.2.2/test/helper.rb
classiccms-0.6.8 vendor/bundle/gems/sinatra-support-1.2.2/test/helper.rb
classiccms-0.6.7 vendor/bundle/gems/sinatra-support-1.2.2/test/helper.rb
classiccms-0.6.6 vendor/bundle/gems/sinatra-support-1.2.2/test/helper.rb
classiccms-0.6.5 vendor/bundle/gems/sinatra-support-1.2.2/test/helper.rb
classiccms-0.6.4 vendor/bundle/gems/sinatra-support-1.2.2/test/helper.rb
classiccms-0.6.3 vendor/bundle/gems/sinatra-support-1.2.2/test/helper.rb
classiccms-0.6.2 vendor/bundle/gems/sinatra-support-1.2.2/test/helper.rb
classiccms-0.6.1 vendor/bundle/gems/sinatra-support-1.2.2/test/helper.rb
classiccms-0.6.0 vendor/bundle/gems/sinatra-support-1.2.2/test/helper.rb
classiccms-0.5.17 vendor/bundle/gems/sinatra-support-1.2.2/test/helper.rb
classiccms-0.5.16 vendor/bundle/gems/sinatra-support-1.2.2/test/helper.rb
classiccms-0.5.15 vendor/bundle/gems/sinatra-support-1.2.2/test/helper.rb
classiccms-0.5.14 vendor/bundle/gems/sinatra-support-1.2.2/test/helper.rb