Sha256: f60fc1685ce8d932a1697064bf96aee54a79061d1d6b11454e81899473d8184f
Contents?: true
Size: 533 Bytes
Versions: 1
Compression:
Stored size: 533 Bytes
Contents
require File.join(File.dirname(__FILE__), 'dummy') gem 'rspec', '>= 1.3.0'; require 'spec' gem 'rack-test', '>= 0.5.3'; require 'rack/test' require 'spec/interop/test' set :environment, :test set :run, :false set :logging, false def app @app ||= Sinatra::Application end describe 'a Sinatra app' do include Rack::Test::Methods it 'should render views/test.haml despite the absence of a get "/test" block if views/test.haml exists' do get '/test' last_response.body.should =~ /Buongiorno principessa!/ end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sinatra-default-templates-1.0.0 | spec/default_templates_spec.rb |