On Friday, November 1, 2013 11:07:24 AM UTC-7, Kylo Ginsberg wrote:

> I just discovered that running a specific test or set of tests via 
> ":<line>" doesn't honor filters but "--line_number <line>" does.  E.g.
>
> > cat fun_with_line_numbers.rb
> describe ":if => false", :if => false do
>   it "should not run" do
>     false
>   end
> end
>
> > rspec -fd fun_with_line_numbers.rb:1
> Run options: include {:locations=>{"./fun_with_line_numbers.rb"=>[1]}}
>
> :if => false
>   should not run
>
> Finished in 0.00047 seconds
> 1 example, 0 failures
>
> > rspec -fd fun_with_line_numbers.rb --line_number 1
> Run options: include {:line_numbers=>[1]}
>
> All examples were filtered out
>
> Finished in 0.00004 seconds
> 0 examples, 0 failures
>
> Is this difference a bug or a feature?  If the latter, is it documented 
> behavior?
>
> Thanks!
> Kylo
>

That sounds like a bug.  Can you report it to the rspec-core issue 
tracker[1]?

Thanks!
Myron

[1] https://github.com/rspec/rspec-core/issues 

-- 
You received this message because you are subscribed to the Google Groups 
"rspec" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rspec/d1455121-cea8-4393-bee3-9458cd345453%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to