Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Nov 19, 2010
  1. @dchelimsky
Commits on Nov 14, 2010
  1. @dchelimsky

    object per example

    dchelimsky authored
Commits on Nov 7, 2010
  1. @dchelimsky
  2. @dchelimsky

    eliminate some warnings

    dchelimsky authored
  3. @myronmarston

    Add implicit :if and :unless filters.

    myronmarston authored
    * 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).
Commits on Nov 6, 2010
  1. @dchelimsky
  2. @dchelimsky
Commits on Oct 24, 2010
  1. @dchelimsky
Commits on Oct 16, 2010
  1. @dchelimsky
Commits on Oct 14, 2010
  1. @dchelimsky

    Perf: simplify calculation of location

    dchelimsky authored
    - 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
Commits on Oct 12, 2010
  1. @dchelimsky

    Perf: get the right collection the first time

    dchelimsky authored
    - turns out it is faster to inject over an array than to collection a
      bunch of arrays and flatten them
Commits on Oct 10, 2010
  1. @myronmarston @dchelimsky

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

    myronmarston authored dchelimsky committed
    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.
Commits on Oct 9, 2010
  1. @dchelimsky
  2. @dchelimsky

    small refactoring

    dchelimsky authored
Commits on Oct 3, 2010
  1. @myronmarston @dchelimsky

    Add xit as an alias for a pending example.

    myronmarston authored dchelimsky committed
    This was present in RSpec 1 and provides a quick way to temporarily make a spec pending.
  2. @dchelimsky
  3. @dchelimsky
Commits on Oct 2, 2010
  1. @spicycode

    GH#34 - Fail fast support

    spicycode authored
Commits on Sep 26, 2010
  1. @myronmarston @dchelimsky

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

    myronmarston authored dchelimsky committed
    …roups, too.
  2. @dchelimsky
  3. @myronmarston @dchelimsky

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

    myronmarston authored dchelimsky committed
    …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.
Commits on Sep 23, 2010
  1. @dchelimsky

    Revert "Remove at_exit hook and rspec/autorun"

    dchelimsky authored
    This reverts commit c6f7806.
    
    - needed to revert because this broke the rake task with rcov
Commits on Sep 19, 2010
  1. @dchelimsky

    cache top_level

    dchelimsky authored
Commits on Sep 17, 2010
  1. @dchelimsky

    small optimizations

    dchelimsky authored
Commits on Sep 12, 2010
  1. @justinko @dchelimsky
  2. @dchelimsky
Commits on Sep 11, 2010
  1. @dchelimsky

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

    dchelimsky authored
    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
Commits on Sep 10, 2010
  1. @dchelimsky

    Abort run on CTRL-C

    dchelimsky authored
    - 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.
Commits on Sep 7, 2010
  1. @spicycode @dchelimsky
  2. @spicycode @dchelimsky

    gh#21 Resolution, 1 remaining pending test

    spicycode authored dchelimsky committed
    Pending in before(:all) don't fail, they just don't work, so that is
    something
Commits on Sep 2, 2010
  1. @iromeo @dchelimsky

    Add example_group_finished message to reporter/formatters.

    iromeo authored dchelimsky committed
    - Closes #112.
Commits on Aug 22, 2010
  1. @justinko @dchelimsky

    Remove ExampleGroup.to_s method

    justinko authored dchelimsky committed
    - Closes #110.
Commits on Aug 12, 2010
  1. @dchelimsky

    Include or extend each module immediately after processing

    dchelimsky authored
    - 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
Commits on Aug 5, 2010
  1. @dchelimsky

    organize some files

    dchelimsky authored
  2. @myronmarston @dchelimsky

    Added an implementation of module_exec for ruby 1.8.6 as module_eval_…

    myronmarston authored dchelimsky committed
    …with_args.
    
    This allows parameterized shared example groups to be used on ruby 1.8.6.
Something went wrong with that request. Please try again.