Skip to content
This repository
  • 253 commits
  • 150 files changed
  • 31 contributors
This comparison is big! We're only showing the most recent 250 commits
Nov 29, 2010
David Chelimsky history 6420733
David Chelimsky Revert "Make debugger statements _just work_"
- restore the --debugger/-d option
- this created a situation in which debugger did not work at all with
  rails, so need to figure out a different solution

This reverts commit 2466831.
David Chelimsky date in history 61437f4
David Chelimsky one more time ec1ceed
David Chelimsky links\! ff8a16b
David Chelimsky wow, this is getting boring acf82f3
David Chelimsky links 8ad59ee
Dec 01, 2010
David Chelimsky bump to 2.3.0.pre 1d67c8c
Ben Lavender Add autotest/fsevent and autotest/growl to Gemfile
- Closes #239.
David Chelimsky initial stab at new SharedContext feature
- replaces rspec-1's share_as
Dec 02, 2010
David Chelimsky doc updates 303fd5a
Dec 05, 2010
Lake Denman Add autotest-fsevent to bundle when ruby platform is darwin.
- Closes #243.
David Chelimsky History 74c93de
David Chelimsky add wip cuke for requiring arbitrary mock framework 8686ecc
David Chelimsky refactor mock framework configuration in prep for adding support for …
David Chelimsky config.mock_with accepts a mock framework adapter module
- Closes #242.
David Chelimsky small refactoring eef0b5c
David Chelimsky refactor expectation framework configuration in prep for adding support
for expecting with the assertion framework provided by stdlib
David Chelimsky Support using rspec/expecations, test/unit/assertions, or both.
- also removed obsolete experimental cuke feature
David Chelimsky words 349b7ec
Dec 06, 2010
László Bácsi Fix issue when RSpec invokes the subject block multiple times
- Closes #244.
David Chelimsky add rspec examples for previous commit 27e1b2c
David Chelimsky History 6530634
David Chelimsky Merge branch 'master' of 4fbd717
Dec 11, 2010
David Chelimsky lock ZenTest at ~> 4.4.2 c228993
David Chelimsky Add "rspec2" to list of Autotest discoveries if ./.rspec file is found. dc1b0d5
Dec 12, 2010
David Chelimsky Fix bug in which around hooks caused stack overflow in ruby-1.8.7. d8a3085
David Chelimsky align Gemfiles across rspec dev repos 6df9d2f
David Chelimsky prep for 2.3.0 release d0d9e89
David Chelimsky first cut at relish nav f51a3fa
David Chelimsky better feature names a3b7f88
David Chelimsky / 7a6cd93
Dec 13, 2010
David Chelimsky Add copies of Upgrade and History to features so they appear in relish.
Need to remove the root directory copies, but that will require changing
some links to their github locations.
David Chelimsky change filename so it looks nicer in relish 6926e03
David Chelimsky relish nav fcd4726
David Chelimsky bump version to 2.4.0.pre 408c044
Dec 14, 2010
Clifford Heath start the debugger on -d so the stack trace is visible when it stops …
…at a debugger call

- Closes #250.
David Chelimsky Split example from previous commit in two and reset Debugger
- there are two separate requirements, so each one gets its own example
- need to able to use the debugger when running rspec on itself
David Chelimsky History 3b80a31
David Chelimsky Send debugger warning message to $stdout if
RSpec.configuration.error_stream has not been defined yet.
Dec 15, 2010
Jarmo Pertman HtmlFormatter takes into account nested example groups for better vie…
…wing experience

- Closes #252.
Jarmo Pertman remove "warning: parenthesize argument(s) for future version"
- Closes #253.
David Chelimsky History 691dc90
Dec 18, 2010
David Chelimsky dev-support: update relish task 5332298
Dec 20, 2010
David Chelimsky the default default _is_ false 059c1e8
Dec 22, 2010
David Chelimsky docs: beef up before/after hook narrative 37a31cf
Shota Fukumori Create a new collection and reject the hooks we don't want
- necessary due to changes in Ruby 1.9.3 (in dev)
- see
David Chelimsky Create a new hook collection w/ selected hooks. a139a28
David Chelimsky History 809ff6a
David Chelimsky better wording fe3fb5c
Be explicit about passing block to super
Allows specs with around hooks to work on JRuby again by
working around
Also, explicit is better than implicit.

- Closes #256.
Dec 23, 2010
David Chelimsky history c1b58ca
Dec 28, 2010
David Chelimsky Fix hook filtering so global hooks can apply to individual examples.
- Closes #261.
David Chelimsky words 1e4f88c
David Chelimsky history fda0549
Janmejay Singh rake_task now capable of loading specs with single and double quotes …
…in path

- Closes #247.
David Chelimsky Specify the escapes rather than shelling out. 6d7c861
Dec 29, 2010
David Chelimsky focus rather than focused d3456f3
David Chelimsky Restore --options CLI option from rspec-1
- sets path to custom options file
- ignores ~/.rspec and ./.rspec
- Closes #228.
Dec 30, 2010
David Chelimsky history a7ff363
Dec 31, 2010
Kim Burgestrand require 'ostruct' to fix bug with its([key])
- Closes #264
David Chelimsky history d794001
David Chelimsky merge two feature files db803b3
David Chelimsky --configure option generates .rspec file instead of autotest/discover.rb 801e7bc
David Chelimsky support multiple formatters
- Closes #213.
David Chelimsky whitespace and typos 07c97d1
David Chelimsky update history w/ 2.3.1 info a0edfa6
Jan 01, 2011
David Chelimsky remove obsolete method e6c5a21
David Chelimsky consistency 3e7ce82
David Chelimsky Show exception classes in failures unless they come from rspec matchers
or message expectations.

- Closes #92.
David Chelimsky history 06d52e7
David Chelimsky Support before(:all) { pending } 83262db
David Chelimsky Better support for add_formatter in configuration.
- create the formatter's output file in config instead of opt parser.
Jan 02, 2011
David Chelimsky prep for 2.4.0 release da33be3
David Chelimsky remove completely unnecessary line 5dc63b1
Jan 03, 2011
corrected the count in the html formater
- Closes #265.
David Chelimsky history 877cc86
Jan 04, 2011
David Chelimsky docs 27deb82
Jan 07, 2011
David Chelimsky Don't clobber formatter options when generating drb_argv
- fixes bug in which --drb + formatters would raise an error when not
  running in drb
- Closes #267
Jan 08, 2011
Jeff Kreeftmeijer Use current_indentation instead of ' ' * @group_level in the document…
…ation formatter

- Closes #271.
Jan 13, 2011
Myron Marston Add scripts that run specs/cukes against all supported rubies.
- script/spec runs specs
- script/cucumber runs cukes
- script/full_build runs both

Also update Gemfile so it can be used cleanly on lots of rubies.

It now works on:

- MRI 1.8.6
- MRI 1.8.7
- MRI 1.9.1
- MRI 1.9.2
- JRuby 1.5.6
- Rubinius 1.1.1
- REE 1.8.7

- Closes #260
David Chelimsky Add #focus as an alias for #focused.
- see d3456f3#comments
  for more info,
- Closes #268.
Myron Marston Allow filtered :all hooks to be applied to nested example groups.
Previously, they could only be applied to top-level example groups.

- Closes #274.
Jan 15, 2011
Myron Marston Add cukes documenting helper methods and let.
- Closes #275.
David Chelimsky cuke tweaks 37e7bdd
David Chelimsky more cuke tweaks 1f109e5
Jan 16, 2011
David Chelimsky loosen constraint on outcome in example that returns an array
- Closes #278.
David Chelimsky cukes/docs dfd0314
David Chelimsky Add -- --skip-bundler option for autotest
- Closes #191.
David Chelimsky sort rather than match on unsorted content be775bb
Jan 17, 2011
David Chelimsky eliminate dup docs 26271e1
David Chelimsky docs c4a852d
monocle Allow tag filtering when using drb
- Closes #277.
Daniel Quimper Added checkboxs at the top of the page to filter examples.
- Closes #270.
David Chelimsky move the checkboxes into the header 3b608f3
David Chelimsky update html and textmate formatter 'golden masters' 26f3098
David Chelimsky update changelog 258bd20
Roman Chernyatchik Prefer SPEC_OPTS to cli
- Closes #276.
David Chelimsky update changlog 881efbd
Jan 20, 2011
David Chelimsky update upgrade link
- Closes #284.
David Chelimsky Deprecate automatic assumption of bundler with autotest.
- use Autotest's bundler plugin instead.
- use 'autotest -- --skip-bundler' to skip 'bundle exec'.
Jan 22, 2011
David Chelimsky Refactor autotest / rspec / bundler codes
- --skip-bundler beats 'autotest/bundler'
David Chelimsky update changelog c1a9383
David Chelimsky minor tweaks to rspec command help output 714176c
Jan 23, 2011
Jon Rowe ignore rvmrc ada3a5d
Jan 24, 2011
David Chelimsky Use File::PATH_SEPARATOR
- thanks to Luis Lavena for the pointer
- Closes #289.
Jon Rowe Fix bug matching failures for autotest with colorized output.
- Closes #251.
- Closes #288.
Jan 25, 2011
Be more explicit about passing a block
JRuby 1.6.0 is not likely to support the previous bit of
magic; see

- Closes #291.
David Chelimsky changelog 837ccdd
Jan 26, 2011
Brian Dunn added example of #its(:attribute) calling the attribute twice 56b6a65
David Chelimsky memoize subject with its\n\n- Closes #292 599c0c9
David Chelimsky move 'its' specs to subject_spec and reorg a bit 14d77bf
David Chelimsky changes 6a860d9
David Chelimsky Make Procsy a module and extend the generated Procs instead of
inheriting from Proc.

- This allows Procsy to behave correctly in all supported versions of
  MRI, as well as JRuby-1.5 and JRuby-1.6.
- See
- See
- Thanks to John Firebaugh for the suggestion!
- Closes #291 (hopefully forealz)
David Chelimsky dev: use regexps in Guardfile 4521850
Jan 27, 2011
David Chelimsky docs 1a66ce9
Feb 01, 2011
Damian Nurzyński Fix rspec hangs after String.alias :to_int :to_i
- Closes #195.
- Closes #295.
David Chelimsky update Changelog 0f9deff
Feb 05, 2011
Jo Liss minor doc fixes
- Closes #298.
Michael Grosser allow specs to run without needing to checkout all rspec projects
- Closes #149.
David Chelimsky Rollback to earlier approach to including other libs. 957b368
David Chelimsky prep for 2.5 release 70acb98
Feb 06, 2011
David Chelimsky Remove --skip-bundler and post -- arg handling from rspec_autotest
Unfortunately, this breaks compatibility, but it is a much simpler and
more sane approach to including or excluding 'bundle exec' in the
autotest command.

- default: do not include it
- to include it, use the autotest bundler plugin
David Chelimsky prep 2.5.1 release af1454d
David Chelimsky date typo 79f9af6
David Chelimsky docs/nav 5a2b75b
Feb 10, 2011
Jo Liss better error message if no block given for hook
- Closes #309.
David Chelimsky remove quotes (less noise) 8bfc602
Feb 14, 2011
David Chelimsky doc tweaks d832c61
Damian Nurzyński Fix exit_status after Exception raised in before :all hook
- Closes #301.
- Closes #302.
Feb 15, 2011
David Chelimsky clear ivars declared before(:all) after a group is run ff18091
David Chelimsky docs dd8b9e4
Feb 16, 2011
David Chelimsky docs 011b1ce
Feb 21, 2011
don't stumble over an exception without a message.
- Closes #308.
David Chelimsky changelog 1a09d44
Removed non-ascii characters from comments
- Closes #315.
David Chelimsky changelog 9557f98
Damian Nurzyński Add config.for_groups_matching
- extend groups matching specific metadata with:
  - method definitions
  - subject declarations
  - let/let! declarations
  - etc (anything you can do in a group)

- Closes #300.
David Chelimsky change log dc24065
David Chelimsky Modify config.for_groups_matching to add methods using def as instance
methods instead of class methods. This exposes them to the examples
rather than the example groups.

Also updated the specs and cukes to make them more generic (less
rails specific).
David Chelimsky Refactor peding declared in an example to raise and capture an exception
instead of throwing/catching a symbol. This fixes a bug in which
post-example processing in an around hook would be skipped if the
example was declared pending from within the example.

- Closes #322.
Peter Jaros `its([:key]) {}` works for any subject with #[].
- Closes #323.
- Closes #296.
David Chelimsky change log 696ef3e
Feb 22, 2011
David Chelimsky Require file from spec that is not autoloaded (so the spec file can be
run individually).

- Closes #318.
Myron Marston Fixed backtrace so it doesn't include lines from before the autorun a…
…t_exit hook.

- Closes #101.
Myron Marston Add cuke for user-defined metadata. ebc4bff
Myron Marston Add new treat_symbols_as_metadata_keys_with_true_values option.
Closes #304.
Feb 25, 2011
Myron Marston Removed unused matcher. d6e84c3
Feb 26, 2011
Myron Marston Move custom matchers into spec/support/matchers.rb. da49bee
Myron Marston Downgrade flexmock to last version that is compatible with 1.8.6 so o…
…ur cukes pass on 1.8.6.
Myron Marston Fix specs on 1.9.1p378.
I have no idea why, but on 1.9.1p378, I was getting errors like "undefined method `to_int' for class `#<Class:0x00000101ae3a18>::String'".  This fixes it.  Apparently `class String` was creating a new class rather than re-opening the existing String class.  `String.class_eval do` ensures we run the alias/undef code in the context of the existing string class.

Yes, this does make no sense whatsoever.  Must be a weird 1.9.1 bug.
Myron Marston Regenerated html fixtures for 1.9.1.
The specs that use them were failing.
Myron Marston Remove coupling to rspec-expectations.
Generated example descriptions only work when using rspec-expectations and the code should not use RSpec::Matchers when configured to use :stdlib.
Feb 27, 2011
David Chelimsky gemspec tweaks dbe818b
Mar 02, 2011
David Chelimsky changelog b801160
Mar 05, 2011
Myron Marston Remove unused local variable. 0394f4a
Mar 06, 2011
David Chelimsky no need to include matchers in spec helper 56616ec
David Chelimsky point Gemfile to git instead of published gems cfa9837
Myron Marston Fix how RSpec::Matchers is included in RSpec::Core::Example group to …
…prevent SystemStackError on 1.9.
Myron Marston Fix how we spec expect_with so its not so fragile. ab861a7
Myron Marston Print a warning when users configure RSpec after defining an example …
Myron Marston Update changelog. 62c9f03
Mar 07, 2011
Justin Ko Use #double as #mock and #stub will be deprecated in the future e3eb542
Myron Marston Rewrite hook filtering cukes so they are more clear.
Making assertions on the output of `puts` in the hooks interleaved with the documentation formatter output is a poor way to demonstrate this feature.
Mar 08, 2011
David Chelimsky Change class level instance var to class's class var so the block is
only executed once per suite.
Myron Marston Add additional examples. 24ec6c8
Myron Marston Add cuke documenting how to include/extend a module in your example g…
David Chelimsky move require to right file 734aa81
David Chelimsky Change --debug option to --debugger
- --debug was not working for reasons unknown.
- Closes #282.
David Chelimsky require 'stringio'
- Closes #328.
Myron Marston Abstract out the metadata symbol deprecation warning.
The current message won't make sense for config options that use symbol metadata so this provides an easy way to define another module with a different warning message for use by configuration.
Myron Marston Allow symbols to be treated as metadata filters for hooks. 5c5aa52
Myron Marston Allow symbols to be treated as metadata for the inclusion filter. 3de3b32
Myron Marston Allow symbols to be treated as metadata for the exclusion filter. 5e0ac37
Myron Marston Allow symbols to be treated as metadata for config.include/config.ext…
Myron Marston Add new feature to nav. 75dd47f
Myron Marston Add cuke documenting `config.alias_example_to`. 750fe14
Myron Marston Allow symbols to be treated as metadata for `config.alias_example_to`. 253b272
Myron Marston Clarify warning. 6fe8316
Myron Marston Reword cuke narative. 1dea593
Myron Marston Allow symbols to be treated as metadata for `config.for_groups_matchi…
Mar 09, 2011
Myron Marston Force users to explicitly specify hook scope when using symbols as me…
…tadata for hooks.
Mar 13, 2011
David Chelimsky docs 0dea1af
Ilkka Laukkanen Pass exit status of DRb run to invoking process
This change causes rspec to exit with a non-zero exit status when specs
fail, even when running with DRb. Failover to local run is done by not
catching DRb::DRbConnError exceptions in RSpec::Core::DRbCommandLine,
instead letting them come up to
Ilkka Laukkanen Fix specs to reflect new DRb behaviour expectations no longer outputs a connection error message, instead
it lets raised DRbConnError exceptions pass through. Also it returns
false for the dummy spec because of the raise() therein.
Justin Ko More detailed spec for running your specs with DRb. e322223
Myron Marston Fix indentation. d313384
Mar 15, 2011
Justin Ko changelog 548dda4
Andy Lindeman Since fda4a12, ostruct is no longer used. Remove the require. Closes #… 1758f81
Mar 21, 2011
David Chelimsky Don't call example_group_[started|finished] unless the group or any of
its children have at least one example to run.

- Closes #317.
David Chelimsky fix cuke i broke last commit :( d0e5fa2
Mar 23, 2011
Sidu Ponnappa Fix `:ruby => "!jruby"` metadata logic. Fixes #338 Fixes #339 3260cb5
David Chelimsky remove comment in feature a1064cf
Sidu Ponnappa Get build to pass on jruby.
- Closes #341.
David Chelimsky Don't run rr spec in jruby (failure coming from rr itself).
- Closes #3.
David Chelimsky same as last time, only this time it actually works 8fd03d2
Fix bug where mixing nested groups and outer-level examples gave
unpredictable :line_number behavior

- Closes #337.
- Closes #340.
David Chelimsky changelog a9ed36a
David Chelimsky add cuke for accessing example from within the example b007362
David Chelimsky rename feature and tweak nav 4ee9369
Mar 24, 2011
David Chelimsky upgrade cucumber and aruba 8f74614
Mar 27, 2011
David Chelimsky Change config.for_groups_matching to shared_context
- not in the context of config
- aligns with shared_examples_for API
- also add `include_context` method to example group
  - so shared context can be included ...
    - using include_context
    - by matching metadata
Mar 28, 2011
Myron Marston Add travis config file. 95458f1
Myron Marston Use git protocol rather than https for bundled rspec gems.
The https url failed when travis-ci tried to build rspec-core.  This might fix it.

error:  while accessing

fatal: HTTP request failed
An error has occurred in git when running `git clone "" "/home/travis/.rvm/gems/ruby-1.8.7-p330/cache/bundler/git/rspec-expectations-1c518ec8c1880aa81941a7a8c7fa04b29ec74c91" --bare --no-hardlinks`. Cannot complete bundling.
Myron Marston Use RUBY_PLATFORM rather than RUBY_ENGINE to detect jruby.
RUBY_ENGINE is not defined when using MRI.  RUBY_PLATFORM is.
Sidu Ponnappa All tests now green on jruby. 6 failing cukes to go before we're all …

- Closes #343.
David Chelimsky Regexp.escape the argument to --example.
- Closes #299.
- Thanks to Elliot Winkler for the suggestion.
Myron Marston Looks like more rubies are installed on travis, so let's build on som…
…e more.
Mar 29, 2011
David Chelimsky clean const_missing backtraces dff001d
David Chelimsky cleaner backtrace cleansing 0ff66c4
David Chelimsky less invasive cleansing of const_missing backtrace 1ffd47d
Apr 01, 2011
Justin Ko Define a `framework_name` class method on all mocking adapter modules…
… so we can get `RSpec.configuration.mock_framework.framework_name`
Justin Ko Cukes for RSpec.configuration.mock_framework.framework_name 398c74c
Apr 03, 2011
Myron Marston Only build the rubies travis has available. 875cb05
Apr 07, 2011
David Chelimsky remove deprecated default_executable from gemspec 7070a15
David Chelimsky Address memory leaks.
- set each example's instance of the group to nil after processing.

This dereferences the example group instance which contains all of the
example's state, thereby releasing each example for garbage collection
after processing.

Note that this does not dereference state initialized in before(:all),
but those instance variables are cleared out in a separate process.

2. nullify ivars after each example

- Closes #321.
Apr 08, 2011
David Chelimsky add spec output a7b7afe
Apr 09, 2011
David Chelimsky run ci against more rubies a4ad3ff
Apr 10, 2011
David Chelimsky update Gemfile to address build issues with 1.9.1 4656bd9
David Chelimsky add travis build status 851d199
Apr 13, 2011
David Chelimsky Correctly pass/fail pending block with message expectations
- Closes #257
David Chelimsky changelog 7169b56
Apr 15, 2011
David Chelimsky add parens to silence warning 44d305c
Rodrigo Rosenfeld Rosas Refactoring of ConfigurationOptions#parse_options
- Closes #346.
Apr 16, 2011
David Chelimsky use the names shared_examples and shared_context in the features 029e697
Pat Maddox Report the exclusion filter eae6b43
Pat Maddox Report exclusion filters (closes #347) 3623784
Pat Maddox whoops forgot to commit updated feature 03a13bc
Pat Maddox words 87a0f38
Apr 17, 2011
Justin Ko Give credit. f7ff6c0
David Chelimsky Add shared_examples/include_examples pair.
Now we have:

  shared_examples / include_examples
  shared_context  / include_context

These actually do the same thing, but the names make different use cases
more intention revealing.
David Chelimsky doc tweaks 98f811d
David Chelimsky --tag key:value supports symbols and strings 57fe719
David Chelimsky prep for 2.6.0.rc1 f10e8bb
David Chelimsky comment aruba/cukes in Gemfile 059aa96
David Chelimsky update changelog bf3ca8c
Apr 18, 2011
David Chelimsky bump to 2.6.0.rc2 422e334
David Chelimsky update the changelog 0b63cc6
David Chelimsky reinstate cucumber and aruba 9490893
David Chelimsky update docs edb06bb
Apr 20, 2011
David Chelimsky doc updates fd5ef93
Apr 21, 2011
Myron Marston Improve the filter announcement messaging.
- Don't include the default filters.
- Remove the noisy hex number from procs.

Closes #350.
Apr 23, 2011
David Chelimsky even shorter description of Proc location 52eca40
David Chelimsky friendly description for both inclusion and exclusion filters c66049a
David Chelimsky remove commented example 0ac4e6e
Apr 28, 2011
David Chelimsky remove redundant statement 86a0813
David Chelimsky inclusion/exclusion filter refactoring ee66acb
David Chelimsky fix some failing (brittle) cukes 4909f5f
Apr 30, 2011
David Chelimsky prep for 2.6.0.rc3 c9851eb
May 01, 2011
David Chelimsky bump to 2.6.0.rc4 83db5d5