Skip to content

Instantly share code, notes, and snippets.

@baroquebobcat
Created May 4, 2013 18:11
Show Gist options
  • Select an option

  • Save baroquebobcat/5518269 to your computer and use it in GitHub Desktop.

Select an option

Save baroquebobcat/5518269 to your computer and use it in GitHub Desktop.
railties errors
1) Failure:
ApplicationTests::AssetDebuggingTest#test_assets_aren't_concatenated_when_compile_is_true_is_on_and_debug_assets_params_is_true [test/application/asset_debugging_test.rb:60]:
Expected /<script src="\/assets\/application-([0-z]+)\.js\?body=1"><\/script>/ to match "<!DOCTYPE html>\n<html>\n<head>\n <title>We're sorry, but something went wrong (500)</title>\n <style>\n body {\n background-color: #EFEFEF;\n color: #2E2F30;\n text-align: center;\n font-family: arial, sans-serif;\n }\n\n div.dialog {\n width: 25em;\n margin: 4em auto 0 auto;\n border: 1px solid #CCC;\n border-right-color: #999;\n border-left-color: #999;\n border-bottom-color: #BBB;\n border-top: #B00100 solid 4px;\n border-top-left-radius: 9px;\n border-top-right-radius: 9px;\n background-color: white;\n padding: 7px 4em 0 4em;\n }\n\n h1 {\n font-size: 100%;\n color: #730E15;\n line-height: 1.5em;\n }\n\n body > p {\n width: 33em;\n margin: 0 auto 1em;\n padding: 1em 0;\n background-color: #F7F7F7;\n border: 1px solid #CCC;\n border-right-color: #999;\n border-bottom-color: #999;\n border-bottom-left-radius: 4px;\n border-bottom-right-radius: 4px;\n border-top-color: #DADADA;\n color: #666;\n box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);\n }\n </style>\n</head>\n\n<body>\n <!-- This file lives in public/500.html -->\n <div class=\"dialog\">\n <h1>We're sorry, but something went wrong.</h1>\n </div>\n <p>If you are the application owner check the logs for more information.</p>\n</body>\n</html>\n".
2) Failure:
ApplicationTests::AssetDebuggingTest#test_assets_are_concatenated_when_debug_is_off_and_compile_is_off_either_if_debug_assets_param_is_provided [test/application/asset_debugging_test.rb:40]:
** Invoke assets:precompile (first_time)
** Invoke assets:environment (first_time)
** Execute assets:environment
** Invoke environment (first_time)
** Execute environment
** Execute assets:precompile
rake aborted!
TypeError: Object function (deps, callback) {
if (Array.isArray(deps)) {
var params = deps.map(function(dep) {
return this.lookup(dep);
}, this);
if (callback) {
callback.apply(null, params);
}
return undefined;
}
else {
return this.lookup(deps);
}
} has no method 'bind'
(in /private/var/folders/np/xf1pqgtj5956rvpdqfnr8hqh0000gn/T/d20130504-40083-13ii3va/app/app/assets/javascripts/application.js)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment