Skip to content

Commit

Permalink
Provide an override for fetching templates in a test environment
Browse files Browse the repository at this point in the history
  • Loading branch information
craigw committed Nov 29, 2011
1 parent 5873bb8 commit db1d941
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions lib/slimmer/test.rb
@@ -0,0 +1,22 @@
module Slimmer
class Skin
def load_template name
%q{
<html>
<head>
<title>Test Template</title>
<script src="http://static.dev.alphagov.co.uk/javascripts/libs/jquery/jquery-1.6.2.min.js"></script><!-- no defer on jquery -->
<script src="http://static.dev.alphagov.co.uk/javascripts/libs/jquery/jquery-ui-1.8.16.custom.min.js" defer></script>
<script src="http://static.dev.alphagov.co.uk/javascripts/libs/jquery/plugins/jquery.base64.js" defer></script>
<script src="http://static.dev.alphagov.co.uk/javascripts/search.js" defer></script>
<script src="http://static.dev.alphagov.co.uk/javascripts/devolution.js" defer></script>
<script src="http://static.dev.alphagov.co.uk/javascripts/popup.js" defer></script>
<script src="http://static.dev.alphagov.co.uk/javascripts/feedback.js" defer></script>
<script src="http://static.dev.alphagov.co.uk/javascripts/customisation-settings.js" defer></script>
</head>
<body></body>
</html>
}
end
end
end

0 comments on commit db1d941

Please sign in to comment.