[rspec-users] Why we use RSpec
tristam29 at gmail.com
Sun Jan 31 10:30:54 EST 2010
On Jan 30, 10:35 am, Ravi Shankar <li... at ruby-forum.com> wrote:
> Hi all,
> I am new to the RSpec, I have many questions related to the RSpec.
> 1. Why one should use RSpec instead of other testing technique
RSpec is designed for Behavior Driven Development, whereas many
testing tools are designed for Test Driven Development or even post-
development testing. So basically, your question could be rephrased
as "What are the benefits of Behavior Driven Development?" Here are a
few places to look for more introductory material:
> 2. Which are the best tools than RSpec
Many people use RSpec with Cucumber. In fact, the RSpec book (linked
below) talks about how to use both of them for effective behavior
driven development. It's important to remember that tools cannot be
measured on an abstract, absolute scale. (i.e. There is no *best*
tool because some tools were designed to do different things.) RSpec
is often compared to Ruby's built-in unit testing framework
(Test::Unit), and many people like the shoulda macros that work with
either RSpec or Test::Unit.
RSpec book: http://www.pragprog.com/titles/achbd/the-rspec-book
Shoulda macros: http://github.com/thoughtbot/shoulda
> 3. Where can i get RSpec demo
There are several demos available online. Here's a demo that shows
RSpec, Test::Unit, and Cucumber using Ruby on Rails:
There's also a lengthy introduction to RSpec available on PeepCode:
I hope that helps!
> Posted viahttp://www.ruby-forum.com/.
> rspec-users mailing list
> rspec-us... at rubyforge.orghttp://rubyforge.org/mailman/listinfo/rspec-users
More information about the rspec-users