Sha256: a136086c8f2c29572816e0e7eb06c318d1de2b029721b93d6bbd122a9300ced2

Contents?: true

Size: 707 Bytes

Versions: 16

Compression:

Stored size: 707 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 'hashie'
  require File.expand_path('../models/user', __FILE__)
end

Riot.pretty_dots

class Riot::Situation
  def char_split(str)
    str.force_encoding("iso-8859-1").split("").sort
  end
end

class Riot::Context
  def char_split(str)
    str.force_encoding("iso-8859-1").split("").sort
  end
end

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
rabl-0.14.0 test/teststrap.rb
rabl-0.13.1 test/teststrap.rb
rabl-0.13.0 test/teststrap.rb
rabl-0.12.0 test/teststrap.rb
rabl-0.11.8 test/teststrap.rb
rabl-0.11.7 test/teststrap.rb
solidus_backend-1.0.0.pre3 vendor/bundle/gems/rabl-0.11.6/test/teststrap.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/rabl-0.11.6/test/teststrap.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/rabl-0.11.6/test/teststrap.rb
rabl-0.11.6 test/teststrap.rb
rabl-0.11.5 test/teststrap.rb
rabl-0.11.4 test/teststrap.rb
rabl-0.11.3 test/teststrap.rb
rabl-0.11.2 test/teststrap.rb
rabl-0.11.1 test/teststrap.rb
rabl-0.11.0 test/teststrap.rb