Sha256: 4f006fae4619bc1536faec1821a5372322cd7a316d10a64ecc4961f9e009feac
Contents?: true
Size: 492 Bytes
Versions: 5
Compression:
Stored size: 492 Bytes
Contents
require File.join(File.dirname(__FILE__), 'test_helper') class TemplateAPI < Helmet::API get '/' do @test = 'test' erb :test end end class TemplateTest < Test::Unit::TestCase include Goliath::TestHelper # code from goliath test def setup @err = Proc.new { assert false, "API request failed" } end def test_template_binding with_api(TemplateAPI) do get_request({}, @err) do |c| assert_equal 'test', c.response end end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
helmet-0.2.1 | test/template_test.rb |
helmet-0.2.0 | test/template_test.rb |
helmet-0.1.3 | test/template_test.rb |
helmet-0.1.2 | test/template_test.rb |
helmet-0.1.1 | test/template_test.rb |