What rspec gem is for?

What does rspec gem do? It is named "Behaviour driven development tool", but these words do not make something clear.

Answers


RSpec is a gem for writing tests for your application. Similar in function to Test:Unit (which comes with Rails), though how they go about it is different.

There are various testing frameworks which allow you to follow a development process called Test (or Behavior) Driven Development. This development style states, basically, that you write tests for a feature or piece of code which will at first fail (because you haven't written the feature yet). You then write the code for that feature until the test passes. It seems backwards, but it offers several benefits over other methods of development. I found the railscast episode "How I Test" to be very helpful in learning test driven development and RSpec (since that's what Ryan uses for testing in the episode).


Need Your Help

How do i get all public pages in DotNetNuke?

c# asp.net dotnetnuke

I am new to DNN web sites, and would like to display a list of the root level pages (Home, Contact Us, etc..) at the top of my skin. Right now I have:

redirect into subdirectory AND out of subdirectory

apache .htaccess mod-rewrite redirect infinite-loop

i have a mod_rewrite redirection problem i cannot figure out.