Skip to content
Commits on Oct 14, 2010
  1. @dchelimsky

    Perf: simplify calculation of location

    dchelimsky committed
    - 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 committed
    - 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 committed with dchelimsky
    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

    add a couple of perf guards

    dchelimsky committed
  2. @dchelimsky

    small refactoring

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

    Add xit as an alias for a pending example.

    myronmarston committed with dchelimsky
    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 committed
Commits on Sep 26, 2010
  1. @myronmarston @dchelimsky
  2. @dchelimsky
  3. @myronmarston @dchelimsky

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

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

    small optimizations

    dchelimsky committed
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 committed
    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 committed
    - 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 committed with dchelimsky
    Pending in before(:all) don't fail, they just don't work, so that is
    something
Commits on Sep 2, 2010
  1. @iromeo @dchelimsky
Commits on Aug 22, 2010
  1. @justinko @dchelimsky

    Remove ExampleGroup.to_s method

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

    Include or extend each module immediately after processing

    dchelimsky committed
    - 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 committed
  2. @myronmarston @dchelimsky

    Added an implementation of module_exec for ruby 1.8.6 as module_eval_…

    myronmarston committed with dchelimsky
    …with_args.
    
    This allows parameterized shared example groups to be used on ruby 1.8.6.
  3. @myronmarston @dchelimsky

    Renamed instance_exec to instance_eval_with_args.

    myronmarston committed with dchelimsky
    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.
Commits on Aug 3, 2010
  1. @dchelimsky

    Expose described_class to example group

    dchelimsky committed
    - alias for describes
    - maybe we should deprecated describes as it might be the only verb in
      the metadata
  2. @dchelimsky
  3. @myronmarston @dchelimsky
Commits on Aug 2, 2010
  1. @dchelimsky
Commits on Aug 1, 2010
  1. @dchelimsky
  2. @dchelimsky

    inline

    dchelimsky committed
Commits on Jul 24, 2010
  1. @dchelimsky

    refactoring

    dchelimsky committed
Commits on Jul 23, 2010
  1. @dchelimsky

    Restore original implementation of its(attribute) from rspec-1.

    dchelimsky committed
    - original implementation by Stephen Touset
    - Closes #90.
Something went wrong with that request. Please try again.