Fixed broken test for clicky analytics

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

No files matched your search

+1 -1
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
+1 -1
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