See d3456f3#comments for background info
Fix ExampleGroup#focused so that the example it defines can be filter…
…ed with :focus or :focused.
See rspec@d3456f3#comments for more info,
How about also aliasing to :focus, with the same args? That way you can combine focus "example" do or focused "example" do with config.filter_run :focus => true or config.filter_run :focused => true and it should all work.
focus "example" do
focused "example" do
config.filter_run :focus => true
config.filter_run :focused => true
I thought about that but I think it sounds kinda funny:
describe MyClass do
focus "does something awesome" do
focused, as an adjective, reads better to me. But I'm fine adding both :)
I'm thinking of POLS here - if you write config.filter_run :focus => true you'd expect focus "blah" do (I think). Given that it's so trivial to add, I think we should do it. Then you can choose to always use focused :)
focus "blah" do
Add #focus as an alias for #focused.
- see rspec@d3456f3#comments
for more info,
- Closes #268.