Permalink
Commits on May 23, 2012
  1. Improve on 27059bf.

    myronmarston committed May 23, 2012
    * Fix specs. The `should_receive(:message).with(/.../)` wasn't working as
      expected...it passed even if the message text didn't match the regex.
      I figured out that it was because of the fact that the error was being
      raised within the example-under-test, which already had two errors and
      was simply printing (or, previously, silencing) the extra error.  The
      solution is to capture the reported message using a stub implementation,
      and then assert on it after running the example.
    * The added context ("in an after hook") for 2nd errors happening in an
      after hook wasn't being included in the printed message. This is fixed now.
Commits on May 22, 2012
  1. Update changelog.

    myronmarston committed May 22, 2012
  2. Don't silence 2nd exceptions.

    myronmarston committed May 22, 2012
    When an example raises an error and an after or around hook also raises an error, the 2nd error was being silenced, since `set_exception` was a no-op when the exception was already set.  Silencing errors is bad, so we should print the error instead.
    
    See https://github.com/myronmarston/vcr/issues/167#issuecomment-5814249 for the issue that triggered this change.
Commits on May 20, 2012
  1. Re-reformat failure message.

    dchelimsky committed May 20, 2012
    Fixes cuke broken by 43ec3a8 caused
    by reformatting a file, which accidentally re-indented a HERE doc.
  2. changelog

    justinko committed May 20, 2012
  3. Remove redundant logic.

    justinko committed May 20, 2012
  4. Only run windows specific specs if on the windows OS.

    justinko committed May 20, 2012
    travis-ci will be supporting multiple OS's in the future.
  5. Merge pull request #605 from jarmo/bug_396

    justinko committed May 20, 2012
    fixes #396
Commits on May 19, 2012
  1. Revert "Fix typo in changelog: Grzegorz M-E~Zwirski [ci skip]"

    dchelimsky committed May 19, 2012
    It was correct before - just looked wrong in my editor.
    
    This reverts commit d342861.
  2. Changelog for #622 [ci skip]

    dchelimsky committed May 19, 2012
  3. RDoc improvements for shared examples, Example, and Procsy.

    dchelimsky committed May 19, 2012
    Also did some minor refactoring in order to be able to use Yard to
    document internal-DSL-generated methods like `it`, `example`, and
    `specify`.
Commits on May 18, 2012
  1. Merge pull request #622 from slyphon/dump_failure_info_fix

    dchelimsky committed May 18, 2012
    call #to_s on exception_message before calling #split
  2. call #to_s on exception_message before calling #split

    slyphon committed May 18, 2012
    When 1.8.7 is shutting down its threads, and you're stuck in a Monitor,
    it will eventually raise a SystemExit, and that SystemExit may have an
    instance of Exception as its `#message` (instead of a String) which
    causes the formatter to blow up.
  3. Changelog for #621

    dchelimsky committed May 18, 2012
  4. RSpec.reset reinits configuration and world

    dchelimsky committed May 18, 2012
    - Fixes #621 (for realz)
  5. Revert "RSpec.reset resets filters"

    dchelimsky committed May 18, 2012
    This reverts commit ba15a2e.
  6. RSpec.reset resets filters

    dchelimsky committed May 18, 2012
    - Fixes #621
Commits on May 16, 2012
  1. doc tweaks [ci skip] #619

    dchelimsky committed May 16, 2012
  2. more Changelog for #619 [ci skip]

    dchelimsky committed May 16, 2012
  3. Support a 'name' arg to subject declaration

    dchelimsky committed May 15, 2012
    Closes #619.
    
    Example:
    
        describe Article do
          subject(:article) { Article.new }
          it { supports_one_liners }
          it "supports intention revealing name" do
            article.should do_something
          end
        end
Commits on May 13, 2012
  1. changelog [ci skip]

    justinko committed May 13, 2012
  2. Merge pull request #614 from dblock/multiple-eees

    justinko committed May 13, 2012
    Allow specifying multiple -e (--example) options
Commits on May 9, 2012
  1. rdoc format [ci skip]

    dchelimsky committed May 9, 2012
Commits on May 8, 2012
  1. `config.mock_with` and `config.expect_with` yield custom config object

    dchelimsky committed May 8, 2012
    to a block if given
    
    This supports decoupled config for other rspec and 3rd party libs.
    
        RSpec.configure do |c|
          c.expect_with ExpectationFramework do |other_framework_config|
            other_framework_config.custom_setting = true
          end
          c.mock_with OtherFramework do |other_framework_config|
            other_framework_config.custom_setting = true
          end
        end
Commits on May 6, 2012
  1. dev: clean up some specs

    dchelimsky committed May 6, 2012
  2. dev: remove obsolete filter

    dchelimsky committed May 6, 2012
Commits on May 4, 2012