sinatra/test/template_test.rb

19 lines
353 B
Ruby
Raw Normal View History

2007-11-29 05:13:51 +00:00
require File.dirname(__FILE__) + '/helper'
context "Templates (in general)" do
specify "are read from files if Symbols" do
get '/from_file' do
@name = 'Alena'
render :foo, :views_directory => File.dirname(__FILE__) + "/views"
end
get_it '/from_file'
body.should.equal 'You rock Alena!'
end
end