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.6.10 test/teststrap.rb
rabl-0.6.9 test/teststrap.rb
rabl-0.6.8 test/teststrap.rb
rabl-0.6.7 test/teststrap.rb
rabl-0.6.6 test/teststrap.rb
rabl-0.6.5 test/teststrap.rb
rabl-0.6.3 test/teststrap.rb
rabl-0.6.2 test/teststrap.rb
rabl-0.6.1 test/teststrap.rb
rabl-0.6.0 test/teststrap.rb
rabl-0.5.5.j test/teststrap.rb
rabl-0.5.5.i test/teststrap.rb
rabl-0.5.5.h test/teststrap.rb
rabl-0.5.5.g test/teststrap.rb
rabl-0.5.5.f test/teststrap.rb
rabl-0.5.5.e test/teststrap.rb
rabl-0.5.5.d test/teststrap.rb
rabl-0.5.5.c test/teststrap.rb
rabl-0.5.5.b test/teststrap.rb
rabl-0.5.5.a test/teststrap.rb