Created
February 22, 2009 14:28
-
-
Save joahking/68481 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# celerity is not getting the ajax response back | |
# this is a stack trace from http://github.com/joahking/cukes/tree/master/ where we are | |
# running cucumber features for webrat together with celerity | |
# please refer to project to see details | |
# we ran this: | |
$ cucumber -p celerity | |
(rdb:1) c | |
When I follow "ajax link" # features/step_definitions/culerity_steps.rb:40 | |
Then I should see "ajaxed cukes" # features/step_definitions/culerity_steps.rb:66 | |
expected: /ajaxed cukes/m, | |
got: "<html>\n <head><title>Cukes</title>\n <script src=\"/javascripts/prototype.js?1233947562\" type=\"text/javascript\"></script>\n<script src=\"/javascripts/effects.js?1233947562\" type=\"text/javascript\"></script>\n<script src=\"/javascripts/dragdrop.js?1233947562\" type=\"text/javascript\"></script>\n<script src=\"/javascripts/controls.js?1233947562\" type=\"text/javascript\"></script>\n<script src=\"/javascripts/application.js?1233947562\" type=\"text/javascript\"></script>\n </head>\n <body>\n Cukes dashboard\n\n<a href=\"/cukes\">webrat link</a>\n<br />\n<a href=\"#\" onclick=\"new Ajax.Updater('cukes', '/cukes', {asynchronous:true, evalScripts:true, method:'get'}); return false;\">ajax link</a>\n\n<div id=\"cukes\">\n\n</div>\n\n </body>\n</html>\n" (using =~) | |
Diff: | |
@@ -1,2 +1,2 @@ | |
-/ajaxed cukes/m | |
+"<html>\n <head><title>Cukes</title>\n <script src=\"/javascripts/prototype.js?1233947562\" type=\"text/javascript\"></script>\n<script src=\"/javascripts/effects.js?1233947562\" type=\"text/javascript\"></script>\n<script src=\"/javascripts/dragdrop.js?1233947562\" type=\"text/javascript\"></script>\n<script src=\"/javascripts/controls.js?1233947562\" type=\"text/javascript\"></script>\n<script src=\"/javascripts/application.js?1233947562\" type=\"text/javascript\"></script>\n </head>\n <body>\n Cukes dashboard\n\n<a href=\"/cukes\">webrat link</a>\n<br />\n<a href=\"#\" onclick=\"new Ajax.Updater('cukes', '/cukes', {asynchronous:true, evalScripts:true, method:'get'}); return false;\">ajax link</a>\n\n<div id=\"cukes\">\n\n</div>\n\n </body>\n</html>\n" | |
(Spec::Expectations::ExpectationNotMetError) | |
/home/joahking/dev/rails/cukes/vendor/plugins/rspec/lib/spec/expectations.rb:57:in `fail_with' | |
/home/joahking/dev/rails/cukes/vendor/plugins/rspec/lib/spec/matchers/operator_matcher.rb:40:in `fail_with_message' | |
/home/joahking/dev/rails/cukes/vendor/plugins/rspec/lib/spec/matchers/operator_matcher.rb:53:in `__delegate_operator' | |
/home/joahking/dev/rails/cukes/vendor/plugins/rspec/lib/spec/matchers/operator_matcher.rb:30:in `/I should see "(.*)"/' | |
features/celerity/cukes.feature:7:in `Then I should see "ajaxed cukes"' | |
1 scenario | |
1 failed step | |
2 passed steps |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment