Skip to content

Instantly share code, notes, and snippets.

@marioaquino
Created January 13, 2012 14:14
Show Gist options
  • Save marioaquino/1606410 to your computer and use it in GitHub Desktop.
Save marioaquino/1606410 to your computer and use it in GitHub Desktop.
RSpec tagging syntax with numbers fail
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.
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