Rspec Tutorial

Hi Everybody,

Greetings!!

I want to use rspec for my applications. Please guide me with the Rspec
tutorial.

I want a good example to start with.

Please help me by providing good tutorials on Rspec to start with.

I actually followed the example from http://rspec.info

Please guide me on more examples.

Waiting for your reply.

Rails ROR wrote:

Please guide me on more examples.

http://pragprog.com/titles/achbd/the-rspec-book
http://media.pragprog.com/titles/achbd/examples.pdf

describe “Person learning rSpec” do
fixtures :people

before(:each) do
@you = people(:you)
end

it “should buy the rSpec book” do
books = @you.books
books.should include(:the_rspec_book)
end

end

On Fri, Oct 23, 2009 at 6:22 AM, Rails ROR [email protected]
wrote:

Please help me by providing good tutorials on Rspec to start with.

Besides the already mentioned book, the PeepCode screencasts
are very good introductory material.

FWIW,

Hassan S. ------------------------ [email protected]
twitter: @hassan

Hi, I really doubt that any one is going to write a book and make it
free to
download. Next, did you try google.com in regards to finding the
information on RSpec tutorials? In any case, I would recommend seeing
what’s available on railscasts.com because I’m sure that Ryan B. has
done
one or more screencasts on RSpec and BDD. Also, I’m sure that you can
find
many blog posts on the subject as well.

Good luck,

-Conrad

Hi
Thank you for your response.

Are there any free books that we can download for Rspec?

If any, Please guide me on that.

Thanks in advance

On Fri, Oct 23, 2009 at 8:02 AM, Hassan S. <

Rails ROR wrote:

Hi,
I have tried in google for Rspec. I thought there might be few books
also.

There are. But they’re not free.

Thankyou for your reply.

Best,

Marnen Laibow-Koser
http://www.marnen.org
[email protected]

Hi,
I have tried in google for Rspec. I thought there might be few books
also.

Thankyou for your reply.

Robert W. wrote:

Rails ROR wrote:

Hi,
I have tried in google for Rspec. I thought there might be few books
also.

Just an idea, but maybe it would be useful to find some open source
projects that are using rSpec and take a look at their specs. That
should give you a good idea of how people are using rSpec in the real
world.

Good idea, Robert!

To the OP: I use RSpec extensively in test-first development. You’re
welcome to check out the specs and features in Quorum (
http://github.com/marnen/quorum2 ) for a real-world example.

Best,

Marnen Laibow-Koser
http://www.marnen.org
[email protected]

Rails ROR wrote:

Hi,
I have tried in google for Rspec. I thought there might be few books
also.

Just an idea, but maybe it would be useful to find some open source
projects that are using rSpec and take a look at their specs. That
should give you a good idea of how people are using rSpec in the real
world.

On Sun, Oct 25, 2009 at 3:28 PM, Robert W.
[email protected] wrote:

Rails ROR wrote:

Hi,
I have tried in google for Rspec. I thought there might be few books
also.

Just an idea, but maybe it would be useful to find some open source
projects that are using rSpec and take a look at their specs. That
should give you a good idea of how people are using rSpec in the real
world.

And there are plenty of bloggers who have written about RSpec: David
Chelimsky (the ‘god-father’ of RSpec), Pat M., …

There’s also a google group for RSpec.

The best source IS the RSpec Book which is in beta from the Pragmatic
Programmer, the PDF version isn’t that expensive.

The problem is that RSpec like almost everything in the Ruby/Rails
environment is evolving rapidly.


Rick DeNatale

Blog: http://talklikeaduck.denhaven2.com/
Twitter: http://twitter.com/RickDeNatale
WWR: http://www.workingwithrails.com/person/9021-rick-denatale
LinkedIn: http://www.linkedin.com/in/rickdenatale

On Mon, Oct 26, 2009 at 3:03 PM, Rick DeNatale [email protected]
wrote:

projects that are using rSpec and take a look at their specs. That

The problem is that RSpec like almost everything in the Ruby/Rails
environment is evolving rapidly.

This is not a bug. It’s a feature! :slight_smile:


Leonardo M…
There’s no place like ~

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs