Sha256: 75587c54b8a89b4dba4bb3ac2703ff70f037e1fdd164352c4f71fe422cf6828c

Contents?: true

Size: 510 Bytes

Versions: 24

Compression:

Stored size: 510 Bytes

Contents

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 File.expand_path('../../lib/rabl',__FILE__)
end

Riot.pretty_dots

class Riot::Situation
  # Custom situation code here
end

class Riot::Context
  # Custom context code here
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
rabl-0.5.4 test/teststrap.rb
rabl-0.5.3 test/teststrap.rb
rabl-0.5.1 test/teststrap.rb
rabl-0.5.0 test/teststrap.rb