Fixed broken test for clicky analytics

This commit is contained in:
Skud
2013-07-26 14:35:42 +10:00
parent 4a0cecff14
commit def6426e49
2 changed files with 2 additions and 2 deletions

View File

@@ -7,7 +7,7 @@
.container
.row
.span12
- if content_for?(:title)
- if content_for?(:title)
%h1= yield(:title)
- if notice
.alert.alert-success

View File

@@ -3,11 +3,11 @@ require 'spec_helper'
describe 'layouts/application.html.haml', :type => "view" do
before(:each) do
controller.stub(:current_user) { nil }
render
end
it 'includes the analytics code' do
Growstuff::Application.config.analytics_code = '<script>alert("foo!")</script>'
render
assert_select "script", :text => 'alert("foo!")'
rendered.should_not contain 'script'
end