Skip to content

Instantly share code, notes, and snippets.

@hypomodern
Created January 10, 2011 19:42
Show Gist options
  • Save hypomodern/773324 to your computer and use it in GitHub Desktop.
Save hypomodern/773324 to your computer and use it in GitHub Desktop.
quick rspec tips

With rspec 1.x:

spec path/to/file_spec.rb:LINE_NUMBER

With rspec 2.x:

rspec path/to/file_spec.rb:LINE_NUMBER
rspec --tag TAG_NAME

BTW, tagging is accomplished like so:

describe "#my_method" do
  it "returns a value", :tag_name => "tag_value" do
    # implementation
  end
end

Pretty simple. Totally useful

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment