Skip to content
This repository
  • 78 commits
  • 40 files changed
  • 6 comments
  • 11 contributors
Dec 22, 2011
Nick Novitski use RR's rspec2 adapter (re: issue #136) b4d8267
Apr 24, 2012
Jarmo Pertman fixes #396 2ea6f20
May 01, 2012
Alex Chaffee formatters run better when $SAFE mode is on
Setting $SAFE=3 causes some file operations to raise a SecurityError. This patch allows you to run in SAFE mode without those SecurityErrors masking the real errors raised by the code under test and/or by RSpec matcher failures.

I extracted the SAFE setting/resetting logic into a helper method called "safely" since it's called from several places.
576b82d
Alex Chaffee improve rdoc comments in BaseFormatter f87b634
Alex Chaffee basic JsonFormatter 972591b
May 04, 2012
Daniel Doubrovkine (dB.) @dblockdotorg Ported support for mutliple -e options from #596. 2f88804
May 06, 2012
David Chelimsky dev: remove obsolete filter 1ad7087
David Chelimsky dev: clean up some specs b1b2ae6
May 08, 2012
David Chelimsky `config.mock_with` and `config.expect_with` yield custom config object
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
651d8d9
Daniel Doubrovkine (dB.) @dblockdotorg A prettier implementation via @justinko. dc33f77
David Chelimsky rdoc format [ci skip] a0202ea
May 13, 2012
Justin Ko Merge pull request #614 from dblock/multiple-eees
Allow specifying multiple -e (--example) options
22e689c
Justin Ko changelog [ci skip] 1004353
May 15, 2012
David Chelimsky spec refactoring: replace subject with intention revealing name e343cba
David Chelimsky Support a 'name' arg to subject declaration
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
2e20683
David Chelimsky more Changelog for #619 [ci skip] 19e1eaf
David Chelimsky doc tweaks [ci skip] #619 5ea6d86
May 17, 2012
David Chelimsky RSpec.reset resets filters
- Fixes #621
ba15a2e
David Chelimsky Revert "RSpec.reset resets filters"
This reverts commit ba15a2e.
2d61d16
David Chelimsky RSpec.reset reinits configuration and world
- Fixes #621 (for realz)
e8eae4d
David Chelimsky Changelog for #621 c9b8681
May 18, 2012
Jonathan Simms call #to_s on exception_message before calling #split
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.
2d39c46
Jonathan Simms causes rspec without #622 to raise NoMethodError 6ab7614
David Chelimsky Merge pull request #622 from slyphon/dump_failure_info_fix
call #to_s on exception_message before calling #split
0d26b06
May 19, 2012
David Chelimsky RDoc improvements for shared examples, Example, and Procsy.
Also did some minor refactoring in order to be able to use Yard to
document internal-DSL-generated methods like `it`, `example`, and
`specify`.
43ec3a8
David Chelimsky Changelog for #622 [ci skip] 1482bfe
David Chelimsky Fix typo in changelog: Grzegorz M-E~Zwirski [ci skip] 18aacf7
David Chelimsky Revert "Fix typo in changelog: Grzegorz M-E~Zwirski [ci skip]"
It was correct before - just looked wrong in my editor.

This reverts commit d342861.
254e7c9
David Chelimsky Changelog after 2.10.1 release [ci skip] 03b72af
David Chelimsky Changelog - link url [ci skip] acf2fdf
David Chelimsky rdoc - use the {name} syntax for links [ci skip] d024dc9
Justin Ko Merge pull request #605 from jarmo/bug_396
fixes #396
d7c250a
Justin Ko Use File::ALT_SEPARATOR if it is not nil (it is on nix systems). 1d49eb6
Justin Ko Only run windows specific specs if on the windows OS.
travis-ci will be supporting multiple OS's in the future.
e675bc3
Justin Ko Remove redundant logic. 2a7fafb
Justin Ko changelog 3705abd
May 20, 2012
David Chelimsky Re-reformat failure message.
Fixes cuke broken by 43ec3a8 caused
by reformatting a file, which accidentally re-indented a HERE doc.
3c1ed24
May 22, 2012
Myron Marston Don't silence 2nd exceptions.
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.
27059bf
Myron Marston Update changelog. 0b34e42
May 23, 2012
Myron Marston Improve on 27059bf.
* 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.
d0cb324
Alex Chaffee add command-line 'j' or 'json' formatter option dcfaa67
May 25, 2012
Bryan Helmkamp Add Code Climate badge e2cc637
David Chelimsky Merge pull request #623 from brynary/codeclimate-badge
Add Code Climate badge
8010fc3
May 27, 2012
Justin Ko Merge pull request #443 from nicknovitski/patch-2
use RR's rspec2 adapter (re: issue #136)
ea668aa
Justin Ko Revert "Merge pull request #443 from nicknovitski/patch-2"
This reverts commit ea668aa, reversing
changes made to 8010fc3.
5090cc3
David Chelimsky minor refactoring: reduce duplication in hooks module 6837910
David Chelimsky remove some unnecessary conditionals 894dd4c
David Chelimsky Add travis-ci badge to README 80bb038
David Chelimsky fix typo in README [ci skip] 553608e
David Chelimsky README tweaks 7bfe871
May 30, 2012
David Chelimsky refactor: move some hooks behavior to Hooks module 0592aca
Jun 03, 2012
David Chelimsky use `define_method` instead of `let` for named subject
`subject` already memoizes the value
f87dfbf
Jun 04, 2012
David Chelimsky `include_examples` and `include_context` now accept a customization b…
…lock.

- Closes #615.
092a9c6
David Chelimsky run share_examples_for examples against shared_examples and shared_co…
…ntext
4feeec6
Jun 06, 2012
Myron Marston Delay the loading of DRB.
- Most of the time users don't use DRB. This'll speed up the start time a bit
  by not unnecessarily loading it when it's not used.
- Apparently jruby 1.7.0-preview1 loads the delegate library when DRB is loaded [1][2].
  This causes expectations on delegate objects to fail because `should` never gets added
  to them. By delaying when delegate gets loaded, it allows a user to load
  `rspec/expectations` and then `delegate` and ensure it works.

[1] rspec/rspec-expectations#148 (comment)
[2] The backtrace at the point delegate is loaded:
/Users/myron/.rvm/rubies/jruby-head/lib/ruby/1.9/drb/drb.rb:1:in `require'
/Users/myron/.rvm/rubies/jruby-head/lib/ruby/1.9/drb/drb.rb:1:in `(root)'
/Users/myron/.rvm/rubies/jruby-head/lib/ruby/1.9/drb/drb.rb:57:in `require'
/Users/myron/.rvm/rubies/jruby-head/lib/ruby/1.9/drb/drb.rb:57:in `(root)'
/Users/myron/.rvm/gems/jruby-head/gems/rspec-core-2.10.1/lib/rspec/core/runner.rb:1:in `require'
/Users/myron/.rvm/gems/jruby-head/gems/rspec-core-2.10.1/lib/rspec/core/runner.rb:1:in `(root)'
/Users/myron/.rvm/gems/jruby-head/gems/rspec-core-2.10.1/lib/rspec/core/runner.rb:1:in `(root)'
file:/Users/myron/.rvm/rubies/jruby-head/lib/jruby.jar!/jruby/kernel19/kernel.rb:1:in `(root)'
file:/Users/myron/.rvm/rubies/jruby-head/lib/jruby.jar!/jruby/kernel19/kernel.rb:19:in `require'
file:/Users/myron/.rvm/rubies/jruby-head/lib/jruby.jar!/jruby/kernel19/kernel.rb:19:in `require_relative'
/Users/myron/.rvm/gems/jruby-head/gems/rspec-core-2.10.1/lib/rspec/core.rb:4:in `require'
/Users/myron/.rvm/gems/jruby-head/gems/rspec-core-2.10.1/lib/rspec/core.rb:4:in `require_rspec'
/Users/myron/.rvm/gems/jruby-head/bin/rspec:23:in `load'
/Users/myron/.rvm/gems/jruby-head/bin/rspec:23:in `(root)'
3646611
Jonathan Hinkle fix typo 3215ad0
Justin Ko Merge pull request #630 from hynkle/typo
fix typo
41a8efb
Jun 09, 2012
David Chelimsky Bump version to 2.10.1
This was done already before the 2.10.1 release, but only on the 2-10
maintenance branch.
2cf3b45
Andy Lindeman `--require` is merged among different configuration sources
* e.g., `--require` specified in SPEC_OPTS will be merged with
  `--require` specified in `.rspec`
* Fixes #594
9518119
Andy Lindeman Changelog for #594 [ci skip] d89c87b
Jun 10, 2012
Myron Marston Merge pull request #629 from rspec/delay-drb-loading
Delay the loading of DRB.
9a79082
Jun 11, 2012
Andy Lindeman -I is merged among configuration sources 5f730b0
Jun 15, 2012
David Chelimsky remove dead code 18903e1
Jun 16, 2012
Myron Marston Don't add `describe` to every object.
Instead, make it only available on:
  - The main object--so it can be used at the top level.
  - Modules--so example groups can be declared nested
    within modules, as is the common practice.

Besides this, the only other place we need describe is from within
example groups (so we can nest them), and this is taken care of by
RSpec::Core::ExampleGroup.describe.

I got the idea for this from a recent change in Sinatra that similarly
limits the DSL to just the main object rather than all objects:

sinatra/sinatra@46bdb7d
de01e05
Jun 21, 2012
David Chelimsky refactoring: alias prepend and append on HookCollection
- a bit more OO
- one less conditional per hook registration
076d683
David Chelimsky Merge pull request #609 from alexch/json-formatter
JSON formatter
8e41f1a
David Chelimsky Changelog for #609 [ci skip] cfb465f
David Chelimsky Revert "Merge pull request #609 from alexch/json-formatter"
Failed in ci build for 1.8.7, jruby, ree

This reverts commit 8e41f1a, reversing
changes made to 076d683.
359cd38
David Chelimsky Restore "Merge pull request #609 from alexch/json-formatter""
Most of the commits with this merge are fine - only one is causing failures
in some rubies - we can deal with that issue separately.

This reverts commit 359cd38.
afa4250
David Chelimsky Revert "formatters run better when $SAFE mode is on"
This is causing failures in Ruby 1.8.7, jruby, and ree

This reverts commit 576b82d.
713ad6f
David Chelimsky Revert "Revert "formatters run better when $SAFE mode is on""
This reverts commit 713ad6f.
7695456
David Chelimsky Revert "Merge pull request #609 from alexch/json-formatter"
This reverts commit 8e41f1a, reversing
changes made to 076d683.
ed9ec72
Jun 29, 2012
David Chelimsky Add `config.order = 'random' to the generated spec_helper.
- Closes #635
bcd0cc2
David Chelimsky don't need redcarpet when running in jruby b5354ef
Jul 04, 2012
David Chelimsky delegate instead of alias from mocha adapter 2c60898
Jul 07, 2012
David Chelimsky refactor: rename method f1e2024
David Chelimsky update Changelog baf4c31
David Chelimsky bump to 2.11.0 f9ed7ab