diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml index cc67cedee..9f2a55272 100644 --- a/app/views/layouts/application.html.haml +++ b/app/views/layouts/application.html.haml @@ -7,7 +7,7 @@ .container .row .span12 - - if content_for?(:title) + - if content_for?(:title) %h1= yield(:title) - if notice .alert.alert-success diff --git a/spec/views/layouts/application_spec.rb b/spec/views/layouts/application_spec.rb index fba5cbeca..0c7bd8b50 100644 --- a/spec/views/layouts/application_spec.rb +++ b/spec/views/layouts/application_spec.rb @@ -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 = '' + render assert_select "script", :text => 'alert("foo!")' rendered.should_not contain 'script' end