Permalink
Browse files

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
  • Loading branch information...
1 parent 50fcd4d commit 01feeb850e38f92de471e0816e395770118e2eb2 @sleeper sleeper committed Aug 8, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 spec/integration/template_spec.rb
@@ -1,6 +1,7 @@
require 'spec_helper'
require File.join(File.dirname(__FILE__), '../../', 'examples/template')
+
describe Template do
def config_file
@@ -9,7 +10,10 @@ def config_file
let(:api_options) { { :config => config_file } }
+ before(:all) { Goliath.env = :test }
+
it 'renders haml template with default haml layout' do
+
with_api(Template, api_options) do
get_request do |c|
c.response.should =~ %r{<li><a href="/joke">Tell me a joke</a></li>}

0 comments on commit 01feeb8

Please sign in to comment.