tag:blogger.com,1999:blog-7821856652257554779.post4496765163275957848..comments2025-09-20T09:27:07.510+02:00Comments on Andrzej on Software: Object oriented acceptance testingAndrzej Krzywdahttp://www.blogger.com/profile/06399276063142826365noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-7821856652257554779.post-25183446127284128442011-04-11T19:03:31.369+02:002011-04-11T19:03:31.369+02:00@Jo
Yes, I also prefer to have the steps calls in...@Jo<br /><br />Yes, I also prefer to have the steps calls in Ruby.<br /><br />You're right, having it as #see would be the RSpec-way. Thanks. I'm still not sure if going with the Steak/Rspec combination is the best way. Next project I'm starting with Capybara + minitest and see if it's easier without RSpec magic.Andrzej Krzywdahttps://www.blogger.com/profile/06399276063142826365noreply@blogger.comtag:blogger.com,1999:blog-7821856652257554779.post-48057847449251089072011-04-11T18:48:19.682+02:002011-04-11T18:48:19.682+02:00I like your TestUser class -- I think it's a g...I like your TestUser class -- I think it's a great way to do Cucumber step definitions in actual Ruby code.<br /><br />One thing though, perhaps it's better to not have should_ methods, but rather plain predicates. So instead of user.should_see('foo'), I'd suggest doing user.should see('foo'), where TestUser#sees? is a predicate method.Jo Lisshttps://www.blogger.com/profile/14144537818667786891noreply@blogger.comtag:blogger.com,1999:blog-7821856652257554779.post-79090259723010729692011-04-07T14:25:43.941+02:002011-04-07T14:25:43.941+02:00@Seban
Thanks!
I would not be able to work witho...@Seban<br /><br />Thanks!<br /><br />I would not be able to work without acceptance tests. Unit tests are important but there is lots of problems that can appear at the integration level.<br /><br />Feel free to register at http://Plansza24.pl :)Andrzej Krzywdahttps://www.blogger.com/profile/06399276063142826365noreply@blogger.comtag:blogger.com,1999:blog-7821856652257554779.post-66500924837578107242011-04-07T08:32:22.956+02:002011-04-07T08:32:22.956+02:00I've never used acceptance tests in real proje...I've never used acceptance tests in real project- I don't need to I prefer good old-school unit testing. But your way is nice for me. I think it is better for programmer. Waiting to hear more about yours ideas about acceptance testing.<br />BTW. I like board games! ;)Sebanhttp://blog.sebastiannowak.comnoreply@blogger.com