Sha256: b7e9e8908af78ffe401bc2aeba0a98467d5c19978385e2ecbd670d226d9cdcbf
Contents?: true
Size: 594 Bytes
Versions: 1
Compression:
Stored size: 594 Bytes
Contents
# encoding: utf-8 ENV['RACK_ENV'] = 'test' lib_path = File.expand_path('../../lib', __FILE__) ($:.unshift lib_path) unless ($:.include? lib_path) Bundler.setup(:default, ENV['RACK_ENV']) require 'rack/body_classes' require 'minitest/autorun' require 'minitest/reporters' MiniTest::Reporters.use! MiniTest::Reporters::SpecReporter.new require 'rack/test' include Rack::Test::Methods require 'sinatra/base' class App < Sinatra::Base use Rack::BodyClasses get '/' do %Q{<html><head></head><body class="#{env['rack.body_classes']}"></body></html>} end end def app App.new end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rack-body_classes-1.0.2 | spec/spec_helper.rb |