mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-03-24 09:43:24 -04:00
15 lines
385 B
Ruby
15 lines
385 B
Ruby
require 'rails_helper'
|
|
|
|
describe 'layouts/application.html.haml', type: "view" do
|
|
before(:each) do
|
|
controller.stub(:current_user) { nil }
|
|
end
|
|
|
|
it 'includes the analytics code' do
|
|
Rails.application.config.analytics_code = '<script>alert("foo!")</script>'
|
|
render
|
|
assert_select "script", text: 'alert("foo!")'
|
|
rendered.should_not have_content 'script'
|
|
end
|
|
end
|