I'm following the rails3tutorial and I don't understand the meaning of the "it" keyword when doing some testing as follows:
describe UsersController do
describe "GET 'new'" do
it "should be successful" do
it "should have the right title" do
response.should have_selector("title", :content => "Sign up")
It's not a Ruby keyword, it's part of the Rspec framework.
it contains the code examples that illustrate the facet of behavior being
defined. It is comprised of two main parts: the description string and
the code example, in the do/end block.