Which do you prefer for writing tests? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Hi, Mauro. I''ve been using rSpec with Cucumber, and have just scratched shoulda... My feeling is that it really depends on how comfortable you are with each one when you read your tests. Read them allowed. Functionality and syntax are equivalent. Regards, jb On Feb 25, 7:48 am, Mauro <mrsan...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Which do you prefer for writing tests?-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Agreed... I''m beginning with Rspec plus Cucumber, but When I was looking for info I found both pretty good, it depends on witch one you are most comfortable with. On Fri, Feb 25, 2011 at 6:12 AM, JB <jose.bonnet-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi, Mauro. > I''ve been using rSpec with Cucumber, and have just scratched > shoulda... > > My feeling is that it really depends on how comfortable you are with > each one when you read your tests. Read them allowed. > Functionality and syntax are equivalent. > > Regards, > jb > > On Feb 25, 7:48 am, Mauro <mrsan...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > Which do you prefer for writing tests? > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- Pedro Henrique de Souza Medeiros ---------------------------------- Cel: +55 (61) 9197-0993 Email: pedrosnk-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 25 February 2011 09:12, JB <jose.bonnet-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi, Mauro. > I''ve been using rSpec with Cucumber, and have just scratched > shoulda... > > My feeling is that it really depends on how comfortable you are with > each one when you read your tests. Read them allowed. > Functionality and syntax are equivalent.Do you use also autotest? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
I just love shoulda. It is such a step up from plain tests. It allows me to write more readable tests without having to have damn_stupid_test_names_that_try_and_explain_everything. The selling point is the context do ... end and the fact that you can have setup do ... end nested at various levels. Without this I would either have to have hundreds of smaller test files (where does this new test go?) or unreadable test files where the test names signify nothing. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Shoulda is great. I use it for all my tests along with factory_girl, faker, and flexmock. And then I have autotest running in the background. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 25 February 2011 10:49, Franz Strebel <franz.strebel-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Shoulda is great. I use it for all my tests along with factory_girl, > faker, and flexmock. > > And then I have autotest running in the background.With spork and autotest-notification? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
I use rspec with shoulda, since shoulda now supports ( and will only support) rspec''s syntax, the context framework is going to be taken out and will not be updated so at the end it will all look like rspec matchers. I use group :test do gem ''rspec'', ''>=2.0.0'' gem ''rspec-rails'', ''>=2.0.0'' gem ''shoulda'' gem "factory_girl_rails" gem ''cucumber'', ">=0.6.3" gem ''cucumber-rails'', ">=0.3.2" gem ''capybara'', ">=0.3.6" gem ''database_cleaner'', ">=0.5.0" gem ''spork'', ">=0.8.4" gem ''launchy'' gem "pickle", ">=0.4.2" gem "selenium-webdriver" end and Faker autotest-fsevent (0.2.4) autotest-growl (0.2.9) -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Here is what a read about shoulda http://robots.thoughtbot.com/post/701863189/shoulda-rails3-and-beyond -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 25 February 2011 12:08, radhames brito <rbritom-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I use rspec with shoulda, since shoulda now supports ( and will only > support) rspec''s syntax, the context framework is going to be taken out and > will not be updated so at the end it will all look like rspec matchers. > I use > group :test do > gem ''rspec'', ''>=2.0.0'' > gem ''rspec-rails'', ''>=2.0.0'' > gem ''shoulda'' > gem "factory_girl_rails" > gem ''cucumber'', ">=0.6.3" > gem ''cucumber-rails'', ">=0.3.2" > gem ''capybara'', ">=0.3.6" > gem ''database_cleaner'', ">=0.5.0" > gem ''spork'', ">=0.8.4" > gem ''launchy'' > gem "pickle", ">=0.4.2" > gem "selenium-webdriver" > end > and > Faker > autotest-fsevent (0.2.4) > autotest-growl (0.2.9)You use cucumber, what about steak? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.