Hi to all I''m a new in ruby and RoR programming. And my problem is Rspec. I don''t understand how to write test files in rspec. Maybe it''s because I don''t know ruby good. Can you send me links to fine examples/screencasts/e-books and other stuff. I found some on google but it not enough :( Thanks for replie''s -- Posted via http://www.ruby-forum.com/.
I find the website to be full of great examples. (wish it were available offline) http://rspec.info On Jan 18, 2008 8:16 AM, Anton Komarov <lists at ruby-forum.com> wrote:> Hi to all > I''m a new in ruby and RoR programming. > And my problem is Rspec. > I don''t understand how to write test files in rspec. > Maybe it''s because I don''t know ruby good. > Can you send me links to fine examples/screencasts/e-books and other > stuff. > I found some on google but it not enough :( > Thanks for replie''s > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >-- Cheers, Kevin Williams http://www.bantamtech.com/
On Jan 18, 2008, at 10:47 AM, Kevin Williams wrote:> I find the website to be full of great examples. (wish it were > available offline)wget and svn are your friends. Scott
You can always spider the site (e.g., use Web Site Sucker on the Mac). Depending on which spider utility you use, you may have to do some manual editing afterward; Web Site Sucker, for instance, doesn''t rewrite the absolute path to the CSS stylesheet into relative paths, which means that you don''t get the nice styled appearance until you do that. Or I suppose you could pour the spidered content into a local Web server of your own, to work around that issue. Al ----- Original Message ---- From: Kevin Williams <kevwil at gmail.com> To: rspec-users at rubyforge.org Sent: Friday, January 18, 2008 7:47:20 AM Subject: Re: [rspec-users] new in ruby and rspec testing I find the website to be full of great examples. (wish it were available offline) http://rspec.info On Jan 18, 2008 8:16 AM, Anton Komarov <lists at ruby-forum.com> wrote:> Hi to all > I''m a new in ruby and RoR programming. > And my problem is Rspec. > I don''t understand how to write test files in rspec. > Maybe it''s because I don''t know ruby good. > Can you send me links to fine examples/screencasts/e-books and other > stuff. > I found some on google but it not enough :( > Thanks for replie''s > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >-- Cheers, Kevin Williams http://www.bantamtech.com/ ____________________________________________________________________________________ Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rspec-users/attachments/20080118/7bad8635/attachment.html
I''ve got the source and tried to build the docs, but it has no css and the links are bad. On Jan 18, 2008 8:56 AM, Scott Taylor <mailing_lists at railsnewbie.com> wrote:> > On Jan 18, 2008, at 10:47 AM, Kevin Williams wrote: > > > I find the website to be full of great examples. (wish it were > > available offline) > > wget and svn are your friends. > > Scott > > > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >-- Cheers, Kevin Williams http://www.bantamtech.com/
Peepcode is likely your best bet for coherent information, at least until the book comes out: http://peepcode.com/products/test-first-development (this uses Test::Unit IIRC, but gives a good into to BDD) http://peepcode.com/products/rspec-basics http://peepcode.com/products/rspec-mocks-and-models http://peepcode.com/products/rspec-controllers-and-tools http://peepcode.com/products/rspec-user-stories They aren''t free, but reasonably priced: $9. /g On 1/18/08, Anton Komarov <lists at ruby-forum.com> wrote:> Hi to all > I''m a new in ruby and RoR programming. > And my problem is Rspec. > I don''t understand how to write test files in rspec. > Maybe it''s because I don''t know ruby good. > Can you send me links to fine examples/screencasts/e-books and other > stuff. > I found some on google but it not enough :( > Thanks for replie''s > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >-- George Anderson BenevolentCode LLC O: (410) 461-7553 C: (410) 218-5185 george at benevolentcode.com
On Jan 18, 2008 10:02 AM, Kevin Williams <kevwil at gmail.com> wrote:> I''ve got the source and tried to build the docs, but it has no css and > the links are bad.How are you trying to build the docs? Are you talking about rdoc or the website docs?
The website. I cd into the /doc directory and ran the rake task to create the site. The pages seem to be there, but some links are broken and there are no css or image files. On Jan 18, 2008 9:32 AM, David Chelimsky <dchelimsky at gmail.com> wrote:> On Jan 18, 2008 10:02 AM, Kevin Williams <kevwil at gmail.com> wrote: > > I''ve got the source and tried to build the docs, but it has no css and > > the links are bad. > > How are you trying to build the docs? Are you talking about rdoc or > the website docs? > > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >-- Cheers, Kevin Williams http://www.bantamtech.com/
Kevin Williams wrote:> The website. I cd into the /doc directory and ran the rake task to > create the site. The pages seem to be there, but some links are broken > and there are no css or image files. > > On Jan 18, 2008 9:32 AM, David Chelimsky <dchelimsky at gmail.com> wrote: > >> On Jan 18, 2008 10:02 AM, Kevin Williams <kevwil at gmail.com> wrote: >> >>> I''ve got the source and tried to build the docs, but it has no css and >>> the links are bad. >>> >> How are you trying to build the docs? Are you talking about rdoc or >> the website docs? >> >> _______________________________________________ >> rspec-users mailing list >> rspec-users at rubyforge.org >> http://rubyforge.org/mailman/listinfo/rspec-users >> >> > > > >As Scott said... wget is your friend: wget --recursive --html-extension --convert-links --domains=rspec.info http://rspec.info That command will put the entire site content along with CSS and all with links made local in a nice little rspec.info dir. :) -Ben
That worked easily enough - thanks! On Jan 18, 2008 9:57 AM, Ben Mabey <ben at benmabey.com> wrote:> > Kevin Williams wrote: > > The website. I cd into the /doc directory and ran the rake task to > > create the site. The pages seem to be there, but some links are broken > > and there are no css or image files. > > > > On Jan 18, 2008 9:32 AM, David Chelimsky <dchelimsky at gmail.com> wrote: > > > >> On Jan 18, 2008 10:02 AM, Kevin Williams <kevwil at gmail.com> wrote: > >> > >>> I''ve got the source and tried to build the docs, but it has no css and > >>> the links are bad. > >>> > >> How are you trying to build the docs? Are you talking about rdoc or > >> the website docs? > >> > >> _______________________________________________ > >> rspec-users mailing list > >> rspec-users at rubyforge.org > >> http://rubyforge.org/mailman/listinfo/rspec-users > >> > >> > > > > > > > > > As Scott said... wget is your friend: > > wget --recursive --html-extension --convert-links --domains=rspec.info > http://rspec.info > > That command will put the entire site content along with CSS and all > with links made local in a nice little rspec.info dir. :) > > -Ben > > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >-- Cheers, Kevin Williams http://www.bantamtech.com/