Created
January 13, 2012 14:14
-
-
Save marioaquino/1606410 to your computer and use it in GitHub Desktop.
RSpec tagging syntax with numbers fail
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In the example, I can run: | |
$> rspec . --tag "2" | |
or | |
$> rspec . --tag 2 | |
and it will find the test I want. The others are unreachable via tag. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe 'Tagging syntax' do | |
it 'doesnt let me use numbers', 1 => true do | |
'foo'.should == 'foo' | |
end | |
it 'lets me use numbers as strings in symbols - yuck', :"2" => true do | |
'I hate'.should_not == 'this' | |
end | |
it 'does not let me use numbers in strings', '3' => true do | |
'bar'.should == 'bar' | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment