On Sun, May 12, 2013 at 3:11 PM, Assaf Shomer <li...@ruby-forum.com> wrote: > I am having an issue where a feature works fine but the corresponding > test fails, and I can't understand why. > I created a mock application to demonstrate the problem. > > https://github.com/assafshomer/clear_button > > All it does is show an input form with a clear button. The clearing > happens by redirecting back to the same form. It does clear it when you > run the app, but the test for it fails. > > If you feel inclined to help, please clone the repo and run the test > mentioned in the readme (or the full suite, which is very short). The > test fails (at least for me) but if you run the app > (http://localhost:3000/pages/input) the 'Clear' button does seem > to be doing the right thing. > > Help?
Just a quick glance, but you probably should move lines 10-16 (the before and it blocks) inside their own describe block, as the before block at line 10 is also running before every it in the other describe blocks. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.