Skip to content
This repository
  • 473 commits
  • 194 files changed
  • 25 comments
  • 28 contributors
This comparison is big! We're only showing the most recent 250 commits
Jan 25, 2011
Be more explicit about passing a block
JRuby 1.6.0 is not likely to support the previous bit of Proc.new
magic; see http://jira.codehaus.org/browse/JRUBY-5420

- Closes #291.
c3207da
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 http://jira.codehaus.org/browse/JRUBY-5261
- See http://jira.codehaus.org/browse/JRUBY-5026
- Thanks to John Firebaugh for the suggestion!
- Closes #291 (hopefully forealz)
33f4903
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.
95456c6
David Chelimsky update Changelog 0f9deff
Feb 05, 2011
Jo Liss minor doc fixes
- Closes #298.
c389b0c
Michael Grosser allow specs to run without needing to checkout all rspec projects
- Closes #149.
c8eae9f
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
49da08c
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.
57007dc
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.
79273a7
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.
6a12e37
David Chelimsky changelog 1a09d44
Removed non-ascii characters from comments
- Closes #315.
4f0a131
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.
f0dc666
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).
08889b4
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.
4ac234e
Peter Jaros `its([:key]) {}` works for any subject with #[].
- Closes #323.
- Closes #296.
fda4a12
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.
d0218cd
Myron Marston Fixed backtrace so it doesn't include lines from before the autorun a…
…t_exit hook.

- Closes #101.
e4b8f5c
Myron Marston Add cuke for user-defined metadata. ebc4bff
Myron Marston Add new treat_symbols_as_metadata_keys_with_true_values option.
Closes #304.
41d11e2
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.
d37bc38
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.
91d1b0a
Myron Marston Regenerated html fixtures for 1.9.1.
The specs that use them were failing.
bc046aa
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.
aa0d179
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.
622a4b7
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 …
…group.
fc70cee
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.
d90f1c1
Mar 08, 2011
David Chelimsky Change class level instance var to class's class var so the block is
only executed once per suite.
2b2ef40
Myron Marston Add additional examples. 24ec6c8
Myron Marston Add cuke documenting how to include/extend a module in your example g…
…roups.
51cb016
David Chelimsky move require to right file 734aa81
David Chelimsky Change --debug option to --debugger
- --debug was not working for reasons unknown.
- Closes #282.
9e8c7f4
David Chelimsky require 'stringio'
- Closes #328.
ba04227
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.
b654495
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…
…end.
c38394d
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…
…ng`.
9cee5e2
Mar 09, 2011
Myron Marston Force users to explicitly specify hook scope when using symbols as me…
…tadata for hooks.
d8cb628
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 Runner.run.
00d842b
Ilkka Laukkanen Fix specs to reflect new DRb behaviour expectations
DRbCommandLine.run 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.
38d43c3
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.
40758a1
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.
bd3aac8
David Chelimsky Don't run rr spec in jruby (failure coming from rr itself).
- Closes #3.
36b0a1f
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.
a368a1a
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
d57065d
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.

Fetching https://github.com/rspec/rspec-expectations.git
error:  while accessing https://github.com/rspec/rspec-expectations.git/info/refs

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

- Closes #343.
37d97f9
David Chelimsky Regexp.escape the argument to --example.
- Closes #299.
- Thanks to Elliot Winkler for the suggestion.
d0ee3df
Myron Marston Looks like more rubies are installed on travis, so let's build on som…
…e more.
096e586
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`
622505d
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.
b51be2c
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
644e372
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.
9e91291
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.
5e035ea
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.
aecda56
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
May 05, 2011
David Chelimsky restore --pattern/-P command line option (from rspec-1) 0c7a676
Suppport both true and false on config.full_backtrace=
- Closes #355.
2c71a88
David Chelimsky no need for the rubygems version in the gemspec 4c0f32e
May 06, 2011
David Chelimsky prep for 2.6.0.rc5 3bbeb31
David Chelimsky prep for rc6 a37ff24
May 07, 2011
David Chelimsky CommandLine.run returns 0/1 instead of true/false
- Closes #366
7410e6f
May 08, 2011
David Chelimsky Document that around hooks don't share state with examples
- Closes #364.
e979ab5
rubytester Create path to formatter output file if it doesn't exist.
- Closes #361.
890d6c6
David Chelimsky make utility method private 169c725
David Chelimsky don't announce 'Running filtered' when there are no filters 9f62063
David Chelimsky don't call autorun when registering an example group
- the rspec command already does this
- if you want to use the ruby command, require 'rspec/autorun'
bfd0765
David Chelimsky Dev: just require 'rspec/core' 67ab2ac
David Chelimsky Set $stderr and $stdout as defaults for RSpec::Core::Runner.run
- See #367.
73b8714
David Chelimsky Dev: remove obsolete file 7658d8b
David Chelimsky add comment to remove spork monkey patch 1466f60
David Chelimsky fix cuke broken by bfd0765 f994d21
David Chelimsky clear the world after each run
- Closes #367.
71cb7af
David Chelimsky update docs e58c0a3
David Chelimsky reset only which needs resetting 9124a62
May 09, 2011
David Chelimsky refactoring: clarify intent of applying filters 9d61d59
May 11, 2011
David Chelimsky easier on the eyes 17782b0
David Chelimsky Revert "refactoring: clarify intent of applying filters"
- it was more expressive, but caused errors in rspec-rails - will
  revisit later

This reverts commit 9d61d59.
58926bb
Justin Ko typo b0161c7
Justin Ko typo a530faf
May 12, 2011
David Chelimsky prep for 2.6.0 6766e18
May 16, 2011
Daniel Grippi Fixes a formatting issue in the deprecation warnings c69f940
Justin Ko Merge pull request #372 from danielgrippi/patch-1 53c72ca
May 17, 2011
David Chelimsky a little rdoc e687d01
May 18, 2011
David Chelimsky Configuration#inclusion_filter and #exclusion_filter guarantee non-nil
- Fixes #376.
b06c1d5
David Chelimsky changelog 899c679
May 19, 2011
David Chelimsky `require 'rspec/autorun'` when running rcov
- Fixes #370.
90db090
David Chelimsky bump to 2.6.1 313167c
David Chelimsky Small refactoring inspired seeing this code on a big screen. Thanks glv. 0871afc
Properly merge command-line exclusions with default :if and :unless.
Fixes issue #353.
51c30d2
Justin Ko Merge pull request #380 from joshcooper/patch-1
Properly merge command-line exclusions with default :if and :unless.
69c11b1
May 20, 2011
Justin Ko Spec for previous commit. Closes #353 335729f
David Chelimsky warn instead of raising when Ruby can't resolve '~'
- Fixes #377.
2c00b21
David Chelimsky Make sure we don't build rspec-core with Ruby 1.9.2 f2470ea
David Chelimsky changelog 689addf
David Chelimsky bump to 2.6.2.rc 4079561
May 21, 2011
Explicitly convert exit code to integer, avoiding TypeError when retu…
…rn value of run is IO object proxied by DRb::DRbObject
0998854
David Chelimsky bump to 2.6.2 b193ae0
David Chelimsky ci: relax rake version constraint 17df39b
David Chelimsky Merge pull request #382 from jscheid/master
Convert value returned by DRb to integer
c4427b7
David Chelimsky changelog 5554b70
David Chelimsky Add dump of shell commands to re-run failed examples (inspired by
Cucumber).
de6531b
David Chelimsky Clarify behavior of --example command line option
- Closes #378.
- Also see #299.
54f90b3
May 22, 2011
Robert Speicher Fix indentation warnings; Closes #352 aadc7b6
David Chelimsky bump to 2.6.3.beta1 to see if building in older rubygems fixes issue
with differences in yaml date emitting and parsing
80bf3a3
David Chelimsky changes 1f93c36
May 23, 2011
David Chelimsky remove accidental file 1c771dd
David Chelimsky dev: remove unnecessary monkey patch of Cucumber 7e34411
David Chelimsky ci: bundle exec rake (to ensure compatibility w/ downstream deps) b13d0f1
May 24, 2011
David Chelimsky Merge in changes from 2-6-maintenance branch
- no functional changes, just dev dependencies, configs, and changelog
c3d9f1b
Yann Lugrin Allow tag exclusion filtering when using drb b6a71b7
May 25, 2011
David Chelimsky ci: run against rbx and jruby c57f529
Justin Ko Merge pull request #384 from tsigo/master
Fix indentation warnings; Closes #352
3cab6c2
Justin Ko Merge pull request #387 from yannlugrin/drb_with_exclusion_tags
Allow tag exclusion filtering when using drb
4ef0c29
May 26, 2011
Elliot Winkler Fix --example option so that it is not double-escaped when running te…
…sts over DRb
28e1393
Justin Ko changelog 17bb5a3
Justin Ko Merge pull request #388 from mcmire/unescape_escaped_example_option_o…
…ver_drb

Fix for --example so that it is not double-escaped when running tests over DRb
dcd919c
Justin Ko slight refactor dd29b29
Justin Ko changelog 3db6c4c
May 27, 2011
David Chelimsky process the name instead of using TYPE constants 4a5aa01
Jun 01, 2011
David Chelimsky add some docs and move some things around 3e98111
Jun 04, 2011
David Chelimsky use cyan for comments (instead of grey, which is not an ansi standard)
- Fixes #393
0e746a8
Jun 06, 2011
David Chelimsky move Changelog to project dir and copy it to features when deploying …
…relish docs
74aa307
David Chelimsky bump to 2.6.4 682f9a1
David Chelimsky oops a74533d
αλεx π Removing Rubinius from .travis.yml due to hanging rbx process hanging…
… after running rake task. Rubinius issue opened: https://github.com/evanphx/rubinius/issues/967.
f74cb8a
David Chelimsky Merge pull request #402 from ifesdjeen/master
Rspec-core with Rubinius leave hanging rbx process on travis-ci.org
d5cd7e8
Jun 07, 2011
David Chelimsky relish docs e2eb136
David Chelimsky add example.exception
- Closes #401.
1c3f47b
Jun 08, 2011
Justin Ko Set a default_directory so you can type "rspec", not "rspec spec"
- See #397.
0ae46b5
David Chelimsky stub out config.files_to_run in examples that run specs but don't nee…
…d to

- See #397
d5285ce
David Chelimsky dev: add --default_directory to rspec's config
- See #397
60f0022
David Chelimsky change default_directory to default_path
- Closes #397
9567fe0
Justin Ko Change feature filename 7415063
Justin Ko relish .nav bea2366
Jun 10, 2011
David Chelimsky ci: build against jruby is hanging on travis, so removing for now 2c9aef1
David Chelimsky --default_directory is not supported on Ruby 1.8.6 9f7b495
Jun 11, 2011
David Chelimsky Support default_path option across all supported rubies
The issue was the non-deterministic order of hash keys.
1da8e31
David Chelimsky less flattening 781490c
David Chelimsky ignore .rbc files 0f4127b
David Chelimsky dev: Rakefile tweaks 8519153
David Chelimsky dev/ci: add binstubs to 'b' directory and tell travis to run b/rake
Tried to move this gem's bin dir to exe and store binstubs in bin, but
that resulted in a stack overflow error.
10b561f
David Chelimsky dev: add rdoc to Gemfile 436e818
David Chelimsky dev: remove dep on rdoc 10fb571
David Chelimsky one more binstub d0b62b4
Jun 13, 2011
David Chelimsky dev: constrain file list in gemspec 5068e70
Jun 14, 2011
Adam Meehan Ensure let methods return a cached nil value instead of repeatedly ev…
…aling block
16567d0
David Chelimsky Minor adjustments to let_spec.rb 4c6356c
David Chelimsky Changelog f1ea985
Jun 16, 2011
David Chelimsky fix failing formatter specs f14f3c2
David Chelimsky fix failing formatter specs in 1.8.7 aa6d8f5
David Chelimsky ci: pull 1.9.1 from travis build - upstream deps are causing errors 9f1018d
David Chelimsky fix failing formatter specs in 1.8.6 092a57f
David J. Hamilton Specify multiple examples by line number
- Pull request #348
2b4f7d9
David Chelimsky changelog 5ed585d
Jun 18, 2011
David Chelimsky names c240059
David Chelimsky remove unnecessary constraint on args passed to before/after/around h…
…ooks
90665b8
Jun 19, 2011
David Chelimsky Revert "remove unnecessary constraint on args passed to before/after/…
…around hooks"

This reverts commit 90665b8.
926ef86
David Chelimsky adjust for regex bug in Ruby 1.8.6
- something is eating $1 - unclear who, how, or why
d462362
David Chelimsky more names d1f7d7a
Jun 20, 2011
David Chelimsky fix formatter comparison files for jruby 4972728
David Chelimsky fix potentially misleading message when ruby-debug fails to load
- it was saying install 'ruby-debug' even if the problem was an upstream
  dependency
- now it uses the message from the LoadError to define the missing gem
c69521e
David Chelimsky ruby-debug's dependencies are causing trouble in ruby 1.8.6 0778d63