…nd metadata. This reverts commit 1680d32. The problem was world was checking example.any_apply? which also checks its example group. By going directly to the example's metadata.any_apply?, we avoid checking the example group and all is right with the world.
…oup, example, and metadata." This reverts commit bad6adc.
…ata. This restores 13f6889 with small adjustment that is necessary for some versions of Ruby, but not all :)
…ta." This reverts commit da80d2e, which introduced failures in some rubies, but not all (so I didn't notice them).
- it was more expressive, but caused errors in rspec-rails - will revisit later This reverts commit 9d61d59.
- the rspec command already does this - if you want to use the ruby command, require 'rspec/autorun'
- not in the context of config - aligns with shared_examples_for API - also add `include_context` method to example group - so shared context can be included ... - using include_context - by matching metadata
The current message won't make sense for config options that use symbol metadata so this provides an easy way to define another module with a different warning message for use by configuration.
only executed once per suite.
…prevent SystemStackError on 1.9.
inheriting from Proc. - This allows Procsy to behave correctly in all supported versions of MRI, as well as JRuby-1.5 and JRuby-1.6. - See http://jira.codehaus.org/browse/JRUBY-5261 - See http://jira.codehaus.org/browse/JRUBY-5026 - Thanks to John Firebaugh for the suggestion! - Closes #291 (hopefully forealz)
Previously, they could only be applied to top-level example groups. - Closes #274.
* These are built in exclusion filters that can be overriden. * When you configure a filter, it now merges with existing filters rather than completely overriding them. * A spec/group is now filtered if ANY of the filter conditions apply; before it required ALL to apply. * Filter lambdas can now accept a 2nd argument that is the metadata hash--this allows checking to see if the key is even in the hash (necessary for the :if filter).