require File.dirname(__FILE__) + '/helper' describe Frank::TemplateHelpers do include Rack::Test::Methods def app proj_dir = File.join(File.dirname(__FILE__), 'template') settings = YAML.load_file(File.join(proj_dir, 'settings.yml')) require File.join(proj_dir, 'helpers') Frank.new do settings.each do |name, value| set name.to_s, value end set :environment, :test set :proj_dir, proj_dir end end before(:all) do @app = app end it 'render haml and use hello_helper' do template = @app.render('helper_test.haml') template.should == "