Matt, I have a question about Rspec -
Do use it for unit tests (model), functional tests (1 controller) and
integration tests (many controllers), just like in TDD?


On 9/19/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]>
wrote:
>
> Send Sdruby mailing list submissions to
>         [email protected]
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         http://lists.sdruby.com/mailman/listinfo/sdruby
> or, via email, send a message with subject or body 'help' to
>         [EMAIL PROTECTED]
>
> You can reach the person managing the list at
>         [EMAIL PROTECTED]
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Sdruby digest..."
>
>
> Today's Topics:
>
>    1. Re: URLs in CSS (Chris Abad)
>    2. Re: URLs in CSS (Chris Griffin)
>    3. Re: URLs in CSS (Nathan Colgate Clark)
>    4. rspec for real development (matthew clark)
>    5. Re: [solved] URLs in CSS (Chris Griffin)
>    6. Re: rspec for real development (Matt Aimonetti)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 19 Sep 2007 15:16:44 -0700
> From: Chris Abad <[EMAIL PROTECTED]>
> Subject: Re: [Sdruby] URLs in CSS
> To: [email protected]
> Message-ID:
>         <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset="us-ascii"
>
> Skipped content of type multipart/alternative-------------- next part
> --------------
> A non-text attachment was scrubbed...
> Name: smime.p7s
> Type: application/pkcs7-signature
> Size: 2441 bytes
> Desc: not available
> Url :
> http://comox.textdrive.com/pipermail/sdruby/attachments/20070919/37f8fecd/smime-0001.bin
>
> ------------------------------
>
> Message: 2
> Date: Wed, 19 Sep 2007 15:17:57 -0700
> From: Chris Griffin <[EMAIL PROTECTED]>
> Subject: Re: [Sdruby] URLs in CSS
> To: [email protected]
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset="us-ascii"
>
> #mainphoto {
>         background-image: url(/images/main_photo.jpg);
>         height: 248px;
>         width: 700px;
> }
>
> The script is in public/stylesheets/site.css
>
> On Sep 19, 2007, at 3:13 PM, Jordan A. Fowler wrote:
>
> Chris,
>
> Please send the snippet of CSS. I should be able to help you out.
>
> --Jordan
>
> On Sep 19, 2007, at 3:07 PM, Chris Griffin wrote:
>
> > I hesitate to through this to the group because it seems like it
> > should work and I'm just missing something simple...
> >
> > I'm doing local development and running Mongrel (scripts/server).
> > The problem is URLs in CSS files are getting sent to Rials as
> > controller/action/... instead of being served as static files. In
> > this case they are background image files. Has any one run across
> > this?
> >
> >
> > Thanks,
> > Chris
> > _______________________________________________
> > Sdruby mailing list
> > [email protected]
> > http://lists.sdruby.com/mailman/listinfo/sdruby
>
> --------------------------------------------------------------
> Jordan A. Fowler
> 2621 First Ave Apt 5
> San Diego, CA 92103
> E-mail: [EMAIL PROTECTED]
> Website: http://www.jordanfowler.com
> Phone: 406.546.8055
>
>
> _______________________________________________
> Sdruby mailing list
> [email protected]
> http://lists.sdruby.com/mailman/listinfo/sdruby
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://comox.textdrive.com/pipermail/sdruby/attachments/20070919/b7e7ed4e/attachment-0001.htm
>
> ------------------------------
>
> Message: 3
> Date: Wed, 19 Sep 2007 15:19:04 -0700
> From: Nathan Colgate Clark <[EMAIL PROTECTED]>
> Subject: Re: [Sdruby] URLs in CSS
> To: [email protected]
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> As I recall, Mongrel first looks for the files, then, if the file is not
> found, tries to interpret it via routes.rb.  Are you sure you have the
> file name in the CSS accurate:
>
> i.e.
>
> url(/images/test.gif)
>
> and not just
>
> url(image/test.gif)
>
> -Nathan
>
> Chris Griffin wrote:
> > I hesitate to through this to the group because it seems like it
> > should work and I'm just missing something simple...
> >
> > I'm doing local development and running Mongrel (scripts/server). The
> > problem is URLs in CSS files are getting sent to Rials as
> > controller/action/... instead of being served as static files. In this
> > case they are background image files. Has any one run across this?
> >
> >
> > Thanks,
> > Chris
> > _______________________________________________
> > Sdruby mailing list
> > [email protected]
> > http://lists.sdruby.com/mailman/listinfo/sdruby
> >
>
>
>
> ------------------------------
>
> Message: 4
> Date: Wed, 19 Sep 2007 17:39:20 -0500
> From: "matthew clark" <[EMAIL PROTECTED]>
> Subject: [Sdruby] rspec for real development
> To: [email protected], [EMAIL PROTECTED]
> Message-ID:
>         <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Anyone using Rspec for real development?  I'm scratching my head a bit
> on how to make it useful in a traditional TDD workflow.
>
> I develop with this workflow, over and over, and over and over-
>
> Write a test -> see it fail -> write the code to make it pass -> see
> test pass -> refactor
>
> I don't see an easy way to run an individual spec file, let alone an
> individual spec, so the above workflow is not possible.
>
> How do you do it?
>
> matt
>
>
> ------------------------------
>
> Message: 5
> Date: Wed, 19 Sep 2007 15:44:05 -0700
> From: Chris Griffin <[EMAIL PROTECTED]>
> Subject: Re: [Sdruby] [solved] URLs in CSS
> To: [email protected]
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
>
> It seems that a file in another css file was missing and this caused
> the other problems. Once I add the missing .gif all the other images
> started working.
>
> Thanks for the help.
>
> On Sep 19, 2007, at 3:19 PM, Nathan Colgate Clark wrote:
>
> As I recall, Mongrel first looks for the files, then, if the file is
> not found, tries to interpret it via routes.rb.  Are you sure you
> have the file name in the CSS accurate:
>
> i.e.
>
> url(/images/test.gif)
>
> and not just
>
> url(image/test.gif)
>
> -Nathan
>
> Chris Griffin wrote:
> > I hesitate to through this to the group because it seems like it
> > should work and I'm just missing something simple...
> >
> > I'm doing local development and running Mongrel (scripts/server).
> > The problem is URLs in CSS files are getting sent to Rials as
> > controller/action/... instead of being served as static files. In
> > this case they are background image files. Has any one run across
> > this?
> >
> >
> > Thanks,
> > Chris
> > _______________________________________________
> > Sdruby mailing list
> > [email protected]
> > http://lists.sdruby.com/mailman/listinfo/sdruby
> >
>
> _______________________________________________
> Sdruby mailing list
> [email protected]
> http://lists.sdruby.com/mailman/listinfo/sdruby
>
>
>
> ------------------------------
>
> Message: 6
> Date: Wed, 19 Sep 2007 18:49:19 -0400
> From: "Matt Aimonetti" <[EMAIL PROTECTED]>
> Subject: Re: [Sdruby] rspec for real development
> To: [email protected]
> Cc: [EMAIL PROTECTED]
> Message-ID:
>         <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset="utf-8"
>
> Hey Matt,
>
> I've been using RSpec for real development for ~9 months now.
>
> The whole concept of integration testing is to test your whole application
> all the time. Your new code might break something else somewhere else. I
> strongly recommend using ZenTest Autotest and cruisecontrol.rb
>
> If you really want to only run one spec file, you can use the rspec rake
> task otherwise the Textmate bundle would let you run one file or one
> specific example.
>
> My workflow:
>
> write an example => get a warning because it fails => write the code to
> make the example pass => get a warning because all examples now pass =>
> refactor => (hope not to see warning) => start over from the beginning
>
> -Matt
>
> --
>
> http://railsontherun.com
>
> On 9/19/07, matthew clark <[EMAIL PROTECTED]> wrote:
> >
> > Anyone using Rspec for real development?  I'm scratching my head a bit
> > on how to make it useful in a traditional TDD workflow.
> >
> > I develop with this workflow, over and over, and over and over-
> >
> > Write a test -> see it fail -> write the code to make it pass -> see
> > test pass -> refactor
> >
> > I don't see an easy way to run an individual spec file, let alone an
> > individual spec, so the above workflow is not possible.
> >
> > How do you do it?
> >
> > matt
> > _______________________________________________
> > Sdruby mailing list
> > [email protected]
> > http://lists.sdruby.com/mailman/listinfo/sdruby
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://comox.textdrive.com/pipermail/sdruby/attachments/20070919/0e12c971/attachment.htm
>
> ------------------------------
>
> _______________________________________________
> Sdruby mailing list
> [email protected]
> http://lists.sdruby.com/mailman/listinfo/sdruby
>
>
> End of Sdruby Digest, Vol 15, Issue 22
> **************************************
>
_______________________________________________
Sdruby mailing list
[email protected]
http://lists.sdruby.com/mailman/listinfo/sdruby

Reply via email to