mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-05-14 11:15:48 -04:00
16 lines
391 B
Ruby
16 lines
391 B
Ruby
require 'spec_helper'
|
|
|
|
describe 'layouts/application.html.haml', :type => "view" do
|
|
before(:each) do
|
|
controller.stub(:current_user) { nil }
|
|
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
|
|
|
|
end
|