Sha256: 85cd5f53f3c37ef23f3eeb020caf122a71464870a92b1004ab68c1aac4a64707

Contents?: true

Size: 588 Bytes

Versions: 16

Compression:

Stored size: 588 Bytes

Contents

$LOAD_PATH.unshift(File.expand_path("../../lib", __FILE__))

module Kernel
  def silence_warnings
    with_warnings(nil) { yield }
  end

  def with_warnings(flag)
    old_verbose, $VERBOSE = $VERBOSE, flag
    yield
  ensure
    $VERBOSE = old_verbose
  end
end unless Kernel.respond_to? :silence_warnings

silence_warnings do
  require 'riot'
  require 'riot/rr'
  require 'tilt'
  require 'rabl'
  require File.expand_path('../models/user', __FILE__)
end

Riot.pretty_dots

class Riot::Situation
  # Custom situation code here
end

class Riot::Context
  # Custom context code here
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
rabl-0.8.6 test/teststrap.rb
rabl-0.8.5 test/teststrap.rb
rabl-0.8.4 test/teststrap.rb
rabl-0.8.3 test/teststrap.rb
rabl-0.8.2 test/teststrap.rb
rabl-0.8.1 test/teststrap.rb
rabl-0.8.0 test/teststrap.rb
rabl-0.7.10 test/teststrap.rb
rabl-0.7.9 test/teststrap.rb
rabl-0.7.8 test/teststrap.rb
rabl-0.7.7 test/teststrap.rb
rabl-0.7.6 test/teststrap.rb
rabl-0.7.5 test/teststrap.rb
rabl-0.7.4 test/teststrap.rb
rabl-0.7.3 test/teststrap.rb
rabl-0.7.2 test/teststrap.rb