Sha256: 831582826594084714c4facbd4f7b6980328156aa1c13365f89f251ecfffa50f
Contents?: true
Size: 501 Bytes
Versions: 1
Compression:
Stored size: 501 Bytes
Contents
require 'mustache/sinatra' RSpec.describe 'normal usage' do let(:app) { Class.new(Sinatra::Application) do set :mustache, { templates: 'views', views: 'views', namespace: Object } get '/' do mustache :index end end } it 'looks up the template' do get '/' expect(last_response).to be_ok expect(last_response.body).to eq("Around\nHello world\n\nAround\n") end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mustache-sinatra-2.0.0 | spec/normal_usage_spec.rb |