mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-05-24 16:58:35 -04:00
Fixed broken test for clicky analytics
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
.container
|
||||
.row
|
||||
.span12
|
||||
- if content_for?(:title)
|
||||
- if content_for?(:title)
|
||||
%h1= yield(:title)
|
||||
- if notice
|
||||
.alert.alert-success
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user