Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
RSpec
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
MartOn  
View profile  
 More options Apr 23, 2:22 am
From: MartOn <frode.mel...@gmail.com>
Date: Wed, 22 Apr 2009 23:22:54 -0700 (PDT)
Local: Thurs, Apr 23 2009 2:22 am
Subject: RSpec
Any1 using rspec with Hobo?

Would be nice to see how you a generating the rspec part of the code.

/MartOn


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
adamski  
View profile  
 More options Apr 23, 7:57 am
From: adamski <adam.elemen...@gmail.com>
Date: Thu, 23 Apr 2009 04:57:21 -0700 (PDT)
Local: Thurs, Apr 23 2009 7:57 am
Subject: Re: RSpec
Also interested in seeing how people test with Hobo, RSpec and
otherwise. It is a highly neglected area of our project and we need to
implement a lot more than our current unit tests.

On Apr 23, 7:22 am, MartOn <frode.mel...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bryan Larsen  
View profile  
 More options Apr 23, 9:15 am
From: Bryan Larsen <bryan.lar...@gmail.com>
Date: Thu, 23 Apr 2009 06:15:20 -0700 (PDT)
Local: Thurs, Apr 23 2009 9:15 am
Subject: Re: RSpec
If you're following Rails conventions, most of your business logic
probably lives in your models.  I find model testing is the easiest
thing to test in Rails.  And Hobo doesn't change this in any way.  The
only thing you're missing is the generators:  script/generate
rspec_scaffold generates rspec but not Hobo, and hobo_model_controller
generates Hobo but not rspec.

What I do is just generate rspec_model on a dummy model and then
convert it into a test for a Hobo model.

If I was starting a new project now, I'd probably use Test::Unit with
shoulda.

I tend not to do controller or view testing because there usually
isn't enough logic in them to make them worth the trouble.

If you create any non-trivial tag, it should be tested -- either with
a view test or an integration test.   For examples of integration
tests, there is a simple Webrat based tests here:
http://github.com/tablatom/agility/blob/master/test/integration/filte....
There's a Selenium test here:  http://github.com/tablatom/agility/blob/master/test/selenium/populate...
and there are more here:  http://github.com/tablatom/agility/tree/jquery-test/test/selenium

cheers,
Bryan

On Apr 23, 7:57 am, adamski <adam.elemen...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google