Skip to content
This repository

Nov 07, 2010

  1. David Chelimsky

    Merge remote branch 'myronmarston/if_and_unless_metadata'

    dchelimsky authored
  2. David Chelimsky

    eliminate some warnings

    dchelimsky authored
  3. Myron Marston

    Add implicit :if and :unless filters.

    * 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).
    myronmarston authored

Nov 06, 2010

  1. David Chelimsky

    Explicitly register an example group from describe()

    dchelimsky authored
  2. David Chelimsky

    Fix bug where "subject { self }" caused a stack overflow.

    - Closes #217.
    dchelimsky authored

Oct 24, 2010

  1. David Chelimsky

    don't forget to add the deprecated methods (ported from 2-0-stable br…

    …anch)
    dchelimsky authored

Oct 16, 2010

  1. David Chelimsky

    remove deprecation notices for items to be removed from 2.1

    dchelimsky authored

Oct 14, 2010

  1. David Chelimsky

    Perf: simplify calculation of location

    - caller is only used to determine file and line number as metadata is
      initialized. There is no need to store it.
    - Also, the previous commit reduces the need for analysis of the caller
      stack. We therefore don't need to sling it around within the rspec
      codebase.
    - Running the following 5000 times took 2.77 seconds before these last
      two commits, 1:58 after:
    
        describe "something" do
          it "does something" do
            1.should eq(1)
          end
        end
    
    Please enter the commit message for your changes. Lines starting
    dchelimsky authored

Oct 12, 2010

  1. David Chelimsky

    Perf: get the right collection the first time

    - turns out it is faster to inject over an array than to collection a
      bunch of arrays and flatten them
    dchelimsky authored

Oct 10, 2010

  1. Myron Marston

    Rescue errors in after(:all) and print them out.

    This isn't a good permanent solution, but it's better than the current behavior.  Currently, RSpec's error handling raises its own error for an error in after(:all), which gives the user a confusing error message and hides the user's error message.
    myronmarston authored dchelimsky committed

Oct 09, 2010

  1. David Chelimsky

    add a couple of perf guards

    dchelimsky authored
  2. David Chelimsky

    small refactoring

    dchelimsky authored

Oct 03, 2010

  1. Myron Marston

    Add xit as an alias for a pending example.

    This was present in RSpec 1 and provides a quick way to temporarily make a spec pending.
    myronmarston authored dchelimsky committed
  2. David Chelimsky

    Move decision about failing fast from example to group

    dchelimsky authored
  3. David Chelimsky

    remove run_all method used in spec suite

    dchelimsky authored

Oct 02, 2010

  1. Chad Humphries

    GH#34 - Fail fast support

    spicycode authored

Sep 26, 2010

  1. Myron Marston

    Fix before(:all) error handling so that it fails examples in nested g…

    …roups, too.
    myronmarston authored dchelimsky committed
  2. David Chelimsky

    Flattent descendant_filtered_examples rather than adding a new method.

    dchelimsky authored
  3. Myron Marston

    Fix a bug with before/after(:all) hooks from unfiltered/excluded exam…

    …ple groups.
    
    Previously, before/after(:all) hooks in an example group with a nested example group would always be run, even if none of the specs in the example group were run due to inclusion/exclusion filtering.  We should only run the before/after(:all) hooks if there are any corresponding examples to run.
    
    - Closes #161.
    myronmarston authored dchelimsky committed

Sep 23, 2010

  1. David Chelimsky

    Revert "Remove at_exit hook and rspec/autorun"

    This reverts commit c6f7806.
    
    - needed to revert because this broke the rake task with rcov
    dchelimsky authored

Sep 19, 2010

  1. David Chelimsky

    cache top_level

    dchelimsky authored

Sep 17, 2010

  1. David Chelimsky

    small optimizations

    dchelimsky authored

Sep 12, 2010

  1. Justin Ko

    Display line on which shared group was called when shared example fails.

    - Closes #82.
    justinko authored dchelimsky committed
  2. David Chelimsky

    Remove at_exit hook and rspec/autorun

    dchelimsky authored

Sep 11, 2010

  1. David Chelimsky

    Improved handling for CTRL-C (runs after(:suite))

    Now, when you hit CTRL-C:
    
    - any subsequent examples in the current group return immediately
      without running or reporting
    - after(:all) hooks in that group are run
    - any subsequent example groups are removed from the global list of
      groups to run
    - after(:all) hooks in parent groups (if INT was received while a nested
      group was running) are run
    - after(:suite) hooks are run
    - standard reporting ensues
    dchelimsky authored

Sep 10, 2010

  1. David Chelimsky

    Abort run on CTRL-C

    - finishes current example
    - runs after alls
    - reports examples run up to and including the one that was running when
      the interrupt was received
    - Closes #32.
    dchelimsky authored

Sep 07, 2010

  1. Chad Humphries

    gh#21 - Let's actually fail the examples fast this time around

    spicycode authored dchelimsky committed
  2. Chad Humphries

    gh#21 Resolution, 1 remaining pending test

    Pending in before(:all) don't fail, they just don't work, so that is
    something
    spicycode authored dchelimsky committed

Sep 02, 2010

  1. Roman Chernyatchik

    Add example_group_finished message to reporter/formatters.

    - Closes #112.
    iromeo authored dchelimsky committed

Aug 22, 2010

  1. Justin Ko

    Remove ExampleGroup.to_s method

    - Closes #110.
    justinko authored dchelimsky committed

Aug 12, 2010

  1. David Chelimsky

    Include or extend each module immediately after processing

    - ensures that included modules that manipulate metadata do so before
      subsequent modules are processed, allowing earlier modules to effect
      the outcome of whether or not to include subsequent modules
    - same for extended modules
    dchelimsky authored

Aug 05, 2010

  1. David Chelimsky

    organize some files

    dchelimsky authored
  2. Myron Marston

    Added an implementation of module_exec for ruby 1.8.6 as module_eval_…

    …with_args.
    
    This allows parameterized shared example groups to be used on ruby 1.8.6.
    myronmarston authored dchelimsky committed
  3. Myron Marston

    Renamed instance_exec to instance_eval_with_args.

    We don't want to expose instance_exec as a public API; it's just for RSpec's internal use.  I also added some guard conditionals to the implementation so that we only use the 1.8.6 instance_exec hack if it's really necessary.
    myronmarston authored dchelimsky committed

Aug 03, 2010

  1. David Chelimsky

    Expose described_class to example group

    - alias for describes
    - maybe we should deprecated describes as it might be the only verb in
      the metadata
    dchelimsky authored
Something went wrong with that request. Please try again.