Cross Reference: home_controller_spec.rb
xref
: /
ontohub
/
spec
/
controllers
/
home_controller_spec.rb
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
home_controller_spec.rb revision b049c4f1eb105fffb64f9c614c54e95137875dba
require
'spec_helper'
describe
HomeController
do
describe
"show"
do
before
{
get
:
show
}
it
{
should
respond_with
:
success
}
it
{
should
render_template
:
show
}
describe
'csp headers'
do
subject
{
response.headers
[
"Content-Security-Policy-Report-Only"
] }
it
{
should
include
"style-src 'self' 'unsafe-inline';"
}
it
{
should
include
"script-src 'self';"
}
end
end
end