This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
| name | age | message | |
|---|---|---|---|
| |
MIT-LICENSE | ||
| |
README.rdoc | ||
| |
Rakefile | ||
| |
init.rb | ||
| |
install.rb | ||
| |
lib/ | ||
| |
tasks/ | ||
| |
test/ | ||
| |
uninstall.rb |
README.rdoc
ReadableTestNamesRunner
Rails allows you to define readable test names like this:
test "the truth" do
assert true
end
With this plugin you can run individual tests from the command line using its readable names.
Exampe
ruby your_test_case.rb -n "the truth"
Shoulda
The plugin also works with shoulda. Given the following tests:
class ShouldaTest < ActiveSupport::TestCase
context "A User instance" do
should "return its full name" do
assert_equal 'John Doe', 'John Doe'
end
context "with a profile" do
should "return true when sent #has_profile?" do
assert false
end
end
end
end
You can easily run individual tests like this:
ruby shoulda_test.rb -n "return its full name"
License
Copyright © 2009 Leonardo Borges - www.leonardoborges.com , released under the MIT license








