Skip to content

Commit 01feeb8

Browse files
committed
rake test now works again
The environment was not correctly set before running the 'template' spec. Now it is forced to 'test' before actually running the specs
1 parent 50fcd4d commit 01feeb8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

‎spec/integration/template_spec.rb‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
require'spec_helper'
22
requireFile.join(File.dirname(__FILE__),'../../','examples/template')
33

4+
45
describeTemplatedo
56

67
defconfig_file
@@ -9,7 +10,10 @@ def config_file
910

1011
let(:api_options){{:config=>config_file}}
1112

13+
before(:all){Goliath.env=:test}
14+
1215
it'renders haml template with default haml layout'do
16+
1317
with_api(Template,api_options)do
1418
get_requestdo |c|
1519
c.response.should =~ %r{<li><a href="/joke">Tell me a joke</a></li>}

0 commit comments

Comments
(0)