Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

We’re showing branches in this repository, but you can also compare across forks.

base fork: rspec/rspec-expectations
...
head fork: rspec/rspec-expectations
This comparison is big! We're only showing the most recent 250 commits
Commits on Oct 21, 2011
David Chelimsky dchelimsky be_kind_of matcher to class 2953622
David Chelimsky dchelimsky be instance of matcher to class (and restore better failure messages …
…for be a kind of)
93f6ac4
David Chelimsky dchelimsky be_within matcher to class 148192b
David Chelimsky dchelimsky move the rest of the built-in matchers to classes 55a6939
David Chelimsky dchelimsky move the matchers back to the files with their classes for now b9cd7f5
David Chelimsky dchelimsky fix cover matcher failure messages 7a0abc1
David Chelimsky dchelimsky add rdoc for a few matchers 79648bd
David Chelimsky dchelimsky changelog a4f0fb5
Commits on Oct 24, 2011
David Chelimsky dchelimsky rdoc 3feb655
David Chelimsky dchelimsky rdoc 29d56b9
Commits on Oct 25, 2011
Justin Ko justinko Set default order to :random 0b61472
Commits on Oct 30, 2011
David Chelimsky dchelimsky add -w flag to rake spec f852ee1
David Chelimsky dchelimsky eliminate warnings 4ef2397
David Chelimsky dchelimsky dev: fix ruby-debug version (and deps) for 1.9.2 806b14b
Matijs van Zuijlen mvz Eliminate remaining warnings.
- Closes #94.
0081b13
David Chelimsky dchelimsky changelog for #94 3c7b0f5
David Chelimsky dchelimsky changelog tweaks 2e85c85
Commits on Nov 06, 2011
David Chelimsky dchelimsky changelog b53e358
David Chelimsky dchelimsky bump to 2.8.0.rc1 09d9dff
Commits on Nov 09, 2011
David Chelimsky dchelimsky update License and/or authors in gemspec c5afc28
David Chelimsky dchelimsky update email addy and homepage in gemspec 3f23693
David Chelimsky dchelimsky fix changelog formatting 3a931ab
Commits on Nov 20, 2011
David Chelimsky dchelimsky dev: clobber docs 9cd937b
Commits on Nov 23, 2011
David Chelimsky dchelimsky add changelog to rdoc 36f2c5d
David Chelimsky dchelimsky Revert "add changelog to rdoc"
Accidentally included some stuff I was in the middle of.

This reverts commit 36f2c5d.
ed98a22
David Chelimsky dchelimsky Add changelog to rdoc (again) 1707be8
Commits on Nov 24, 2011
David Chelimsky dchelimsky dev: add warning with solution for ruby-debug19 issues when installin…
…g the bundle on ruby-1.9.3
e61595a
David Chelimsky dchelimsky add match_unless_raises to BaseMatcher 94591f2
David Chelimsky dchelimsky store the exception rescued in match_against_raises 88d6ecf
Commits on Nov 25, 2011
David Chelimsky dchelimsky BaseMatcher#== delegates to matches? 4499f53
David Chelimsky dchelimsky dev: hack the Gemfile to print instructions for ruby-debug-base19 and…
… linecache19 on ruby-1.9.3
1b2f6bd
David Chelimsky dchelimsky format 678ce01
David Chelimsky dchelimsky ci: don't warn about ruby-debug-base19 and linecache19 in ci 82eba3f
Commits on Nov 26, 2011
David Chelimsky dchelimsky self-less 7ae080e
David Chelimsky dchelimsky remove unused file f776aca
David Chelimsky dchelimsky dev: move dev-env gems to Gemfile-custom.sample d67083c
David Chelimsky dchelimsky ignore Gemfile-custom 213f60c
Commits on Nov 28, 2011
Corey Haines coreyhaines create one matcher object rather than one-per-call d3e5310
David Chelimsky dchelimsky document methods in the matcher DSL 17c04aa
Commits on Dec 02, 2011
David Chelimsky dchelimsky add license to gemspec (and consequently the gem) f9f1b5b
Commits on Dec 04, 2011
David Chelimsky dchelimsky use github-flavored-markdown in the readme f574614
Commits on Dec 16, 2011
David Chelimsky dchelimsky add note explaining why you can't say actual.should != expected a6c4788
Commits on Dec 20, 2011
David Chelimsky dchelimsky prep for 2.8.0.rc2 28ca577
Commits on Dec 28, 2011
Chad Humphries spicycode Merge pull request #60 from pcreux/master
Better diff output for Hash
2447ef6
Commits on Dec 29, 2011
David Chelimsky dchelimsky Changelog for last merge 6db8a2a
David Chelimsky dchelimsky make include matcher diffable 119e018
Commits on Jan 04, 2012
Olek Janiszewski exviva Fix warning in matchers/dsl.rb
lib/rspec/matchers/dsl.rb:10: warning: `*' interpreted as argument prefix
9b8aeb9
David Chelimsky dchelimsky Merge pull request #102 from exviva/fix_warning_splat_interpreted_as_…
…argument_prefix

Fix warning in matchers/dsl.rb
43b0918
David Chelimsky dchelimsky Diff single line and multiline strings differently 1273d4d
David Chelimsky dchelimsky Changelog for #102 [ci skip] b525e69
Commits on Jan 05, 2012
David Chelimsky dchelimsky bump to 2.8.0 04e55a8
Commits on Jan 06, 2012
David Chelimsky dchelimsky Align respond_to? and method_missing in Matchers generated by DSL.
- Fixes #103.
d7db5d0
David Chelimsky dchelimsky changelog for #103 3d89aec
David Chelimsky dchelimsky bump some dev dep versions and move them to gemspec 73c6b68
David Chelimsky dchelimsky clean up file listings for rdoc, yard, and gemspec b41b82f
David Chelimsky dchelimsky ci: need the development group now 034084e
David Chelimsky dchelimsky add README.md to .document file [ci skip] d03388f
Commits on Jan 09, 2012
David Chelimsky dchelimsky remove unnecessary (and unused) custom error classes e031971
Commits on Jan 12, 2012
David Chelimsky dchelimsky Move all the matcher classes to the RSpec::Matchers::BuiltIn module (so
they don't cloud the Matchers namespace)
536cf9e
David Chelimsky dchelimsky dev: tweak Guardfile b7f6dde
David Chelimsky dchelimsky autoload matcher classes to reduce startup time a0f5026
David Chelimsky dchelimsky benchmark improvement using autoload a5b7368
David Chelimsky dchelimsky Changelog for #105 [ci skip] 867260b
David Chelimsky dchelimsky fix test for cover fb36160
David Chelimsky dchelimsky fix cuke that includes fully qualified name of a class that moved 19c64a5
David Chelimsky dchelimsky it's cover? (with a ?) 95bf234
David Chelimsky dchelimsky Clear out user-defined instance variables between invocations of DSL-…
…defined matchers.

- Fixes #104.
f4efada
David Chelimsky dchelimsky ruby 1.8 uses strings, 1.9 symbols 0102504
Myron Marston myronmarston Perf: Set#include? is O(1); Array#include? is O(N).
See the included benchmarks for actual benchmarks against a collection of 7 values like we have here.
40f83a9
Commits on Jan 24, 2012
David Chelimsky dchelimsky Dup the instance of a DSL generated matcher so its state is not changed
by subsequent invocations.

- Fixes #112.
65d3c4d
Commits on Jan 28, 2012
David Chelimsky dchelimsky Remove relative links from README, since they can't work correctly on
github and rubydoc.info.

- Fixes #113.
17325de
Commits on Feb 06, 2012
David Chelimsky dchelimsky Treat expected args consistently across positive and negative expecta…
…tions.

- Fixes #115.
044b0a6
David Chelimsky dchelimsky Changlog for #115 503ed29
Commits on Mar 12, 2012
David Chelimsky dchelimsky bump to 2.9.0.rc1 f923b28
David Chelimsky dchelimsky Fix file list in gemspec.
- Fixes #121
ddf0502
David Chelimsky dchelimsky bump to 2.9.0.rc2 a60766b
Commits on Mar 17, 2012
David Chelimsky dchelimsky bump to 2.9.0 fb77fca
David Chelimsky dchelimsky dev: add a script to download ruby-debug-base19-0.11.26.gem and linec…
…ache19-0.5.13.gem to a local cache

[ci skip]
564487b
David Chelimsky dchelimsky Require kernel extensions (should) from block_aliases in case it is
loaded first.
e290fe3
David Chelimsky dchelimsky fix bug diffing single strings with multiline strings 07dd19c
David Chelimsky dchelimsky Revert "fix bug diffing single strings with multiline strings"
This reverts commit 07dd19c.
2c23be3
David Chelimsky dchelimsky better fix for bug when diffing multiline strings e4d8dcb
David Chelimsky dchelimsky formatting tweaks in the changelog 0492d87
Commits on Mar 22, 2012
Justin Ko justinko Remove unnecessary "else" clause. 584e764
Commits on Mar 23, 2012
Justin Ko justinko Provide a helpful message if the diff between two objects is empty. F…
…ixes #123
e12a2d9
Commits on Mar 25, 2012
David Chelimsky dchelimsky Changelog for #125 [ci skip] 0458ac1
Commits on Mar 27, 2012
Myron Marston myronmarston Started working on yield matchers. 99456da
Commits on Mar 29, 2012
Myron Marston myronmarston Rename helper methods for yield matcher specs. eb9d327
mirasrael Fix error with using custom matchers inside other custom matcher rspe… 77243d9
David Chelimsky dchelimsky Merge pull request #126 from mirasrael/master
Fix for error with using custom matchers inside other custom matchers
6fe6c9f
David Chelimsky dchelimsky changelog for #126 8f822b0
David Chelimsky dchelimsky tweak docstring #126 [ci skip] e5cd722
Commits on Mar 30, 2012
Myron Marston myronmarston Match yielded args with == or ===.
Previously, this expectation failed:

  expect { |b| _yield_with_args(String, Fixnum, &b) }.to yield_with_args(String, Fixnum)

...because Class=== returns false when given itself.
72c5dae
Myron Marston myronmarston Provide better message for negative yield_with_args matcher failure. f3923dd
Myron Marston myronmarston Group the yield examples by matcher. 1b106c4
mirasrael Fix using execution context methods in nested DSL matchers
- Fixes #127.
abba439
Commits on Mar 31, 2012
Myron Marston myronmarston Add yield_successive_args matcher. 23f5acb
mirasrael Fix RSpec::Matchers::DSL#define for compatibility with 1.8.x 21752df
mirasrael Fix naming 70dd175
Myron Marston myronmarston Fix typo: "yields", not "yeilds". 1897250
Myron Marston myronmarston Remove diffability from yield matchers for now.
I'm not sure it makes sense given that they don't match strictly but instead match using === or ==.
3c6a81e
Myron Marston myronmarston Fix yield matchers to handle instance_eval.
It's debatable if instance_eval'ing a block can be considered yielding, but it's important that we use local variables in the lambdas rather than instance variables, because we don't want to modify the state of the receiver of #instance_eval.
0e79594
Myron Marston myronmarston Raise an error if a yield matcher is used w/ an expect block that acc…
…epts no args.

The expect block must accept an arg, and pass it on to the method-under-test as a block, in order for these yield matchers to work properly.  Since this is atypical for an expect block, this error will help guide people when they use these matchers incorrectly.
66a2f01
Myron Marston myronmarston Add description to all yield matchers. e969284
Commits on Apr 01, 2012
Myron Marston myronmarston Add API docs for yield matchers.
Cukes are still to come.
b94da8d
Justin Ko justinko Merge pull request #128 from mirasrael/master
Fix using execution context methods in nested DSL matchers
5ffc547
Commits on Apr 02, 2012
David Chelimsky dchelimsky Changelog for #128
[ci skip]
ca5cc09
David Chelimsky dchelimsky Change the be_within matcher to be inclusive of the delta.
- Fixes #131.
- This changes the way the matcher behaves, which is something we would
  generally avoid in anything but a major release, however we believe
  that this is the correct behavior and that this change is very unlikely
  to impact anybody negatively. Specifically:

  1. 17.4.should be_within(0.5).of(17) # used to pass and continues to pass
  2. 17.5.should be_within(0.5).of(17) # used to fail due to lack of inclusivity, but passes after this change
  3. 17.6.should be_within(0.5).of(17) # used to fail and continues to fail
  4. 17.4.should_not be_within(0.5).of(17) # used to fail and continues to fail
  5. 17.5.should_not be_within(0.5).of(17) # used to pass due to lack of inclusivity, but fails after this change
  6. 17.6.should_not be_within(0.5).of(17) # used to fail and continues to fail

  Scenario 2 used to fail, so it's unlikely to be present.
  Scenario 5 will result in new failures, but we believe that it is very unlikely to be used.
a9bf7ab
Commits on Apr 03, 2012
David Chelimsky dchelimsky bump to 2.9.1 f31ae96
David Chelimsky dchelimsky fix changelog 2cfed80
Commits on Apr 04, 2012
David Chelimsky dchelimsky need relish in the Gemfile to push relish docs 6fe2bca
David Chelimsky dchelimsky add doc files to .yardopts
[ci skip]
40cbc30
Commits on Apr 08, 2012
Jeremy Wadsack jeremywadsack Added start_with and end_with matchers for String 77a9ecc
Jeremy Wadsack jeremywadsack Added start_with and end_with support for Array 9b9946c
Jeremy Wadsack jeremywadsack Handle case when expected can't be indexed ab1d055
Jeremy Wadsack jeremywadsack Rdoc for new matchers d5fdf35
Jeremy Wadsack jeremywadsack Fix up whitespace 5f367d9
Commits on Apr 09, 2012
David Chelimsky dchelimsky Merge pull request #135 from jeremywadsack/start_with_end_with
Add matchers start_with end_with
05d9853
Commits on Apr 10, 2012
Myron Marston myronmarston Add cukes for yield matchers. 24335ee
David Chelimsky dchelimsky Change start_with and end_with matchers to take varargs.
- Clean up rdoc, features, and specs.
- Refactor the two matchers a bit.
- Add changelog.
- #135
2e0cdbc
David Chelimsky dchelimsky add start_with and end_with matchers to README [ci skip] 35d98aa
Myron Marston myronmarston Raise an error if expect block arg isn't passed on as a block.
Otherwise, the matcher is unable to detect anything about if the method-under-test yields, and the user may get false positives.
780655c
Myron Marston myronmarston Refactor yield matchers a bit.
This allows the YieldProbe to take care of defining the probe block, and simplifies the #matches? methods.
7a0e4bb
Myron Marston myronmarston Raise an error if a single-yield matcher is used with a multi-yield m…
…ethod.

Only the yield_successive_args matcher is designed for the multi-yield case.
f8c3c01
Commits on Apr 11, 2012
Myron Marston myronmarston Update the yield cukes with a few more/better examples. d020cfe
Commits on Apr 17, 2012
Jeremy Wadsack jeremywadsack Added more helpful message when actual has #[] but does not support #…
…[0,3]

Pull request #135
5908107
David Chelimsky dchelimsky align usage of expect/to 3591cd2
David Chelimsky dchelimsky can't use 1.9 hash syntax in specs (still support 1.8) - #135 5bdf4b8
Commits on Apr 19, 2012
Myron Marston myronmarston Merge pull request #129 from rspec/yield_matchers
Yield matchers
e610e40
Myron Marston myronmarston Update changelog.
[ci skip]
429c672
Commits on Apr 20, 2012
David Chelimsky dchelimsky match_unless_raises accepts multiple args
- in support of fix for rspec/rspec-rails#530
a5a58aa
John Firebaugh jfirebaugh Do not require exception messages to exactly match MRI
Different Ruby implementations deserve latitude in the error
messages, e.g. to provide more precise diagnostics than MRI.

In particular, do not rely on the fact that RuntimeError generated
by MRI when calling bare `raise` without a current exception has
an empty message. That is not the case on Rubinius; it is arguably
a bug in MRI.

Following this commit, all test pass on Rubinius head.
9fa523e
Commits on Apr 21, 2012
David Chelimsky dchelimsky Merge pull request #140 from jfirebaugh/rubinius
Do not require exception messages to exactly match MRI
b98f0ba
David Chelimsky dchelimsky Fix potential false-positive so that it will fail correctly if there …
…is a regression.

- See #140.
694cbf1
David Chelimsky dchelimsky Changlog for #140 780d4c2
David Chelimsky dchelimsky eliminate 'not initialized' warning on @matcher_execution_context 7c76204
David Chelimsky dchelimsky ci: run against rbx 1fdaedb
David Chelimsky dchelimsky Fix Changelog formatting [ci skip] 20c7a3c
David Chelimsky dchelimsky Changelog [ci skip] f93ce4c
Commits on Apr 22, 2012
David Chelimsky dchelimsky shorten file extension f315020
David Chelimsky dchelimsky align config files across rspec projects fe40efd
David Chelimsky dchelimsky silence more warnings 5d8a233
David Chelimsky dchelimsky dev: align Gemfiles across rspec projects 15d96b8
Commits on May 01, 2012
David Chelimsky dchelimsky update yard to 0.8 97b5e0c
Commits on May 04, 2012
David Chelimsky dchelimsky update changelog for 2.10 release 77e1a09
David Chelimsky dchelimsky bump to 2.10.0 2e348ff
Commits on May 09, 2012
Myron Marston myronmarston Add support for `expect(value)` syntax.
Note: there's more to do here (documentation, etc); this is just a starting point for discussion and comments.
d279c3b
Myron Marston myronmarston Don't expose #target as a public API.
Also, fix the spelling of the class while I'm at it.
0d7ce9c
Myron Marston myronmarston Add configuration API for choosing an expectation syntax.
:should, :expect or both can be chosen.
d9ab1a3
Myron Marston myronmarston Don't redefine should or expect when re-configured. ad2a757
Commits on May 10, 2012
Myron Marston myronmarston Refactor enabling/disabling of expectation syntaxes.
* Fix build on JRuby. Our sandboxing via forking didn't work
  on JRuby since fork isn't available. On JRuby we just
  re-enable all syntaxes at the end of each sandboxed example.
* Testing this revealed that the way I was restoring a disabled
  syntax didn't always work. Based on the random order, sometimes
  spec/rspec/matchers/be_spec.rb:427 would fail with
  "TypeError: bind argument must be an instance of Kernel".
* Refactored main logic into new syntax module, that can add
  the syntaxes to any class or module. Kernel/RSpec::Matcher
  defaults are provided for convenience. This also fixes the
  bind failure, by redefining the methods anew rather than
  re-binding the old ones.
309c4f0
Myron Marston myronmarston Prevent operator matchers from new expect syntax. 6de81c7
Commits on May 11, 2012
Myron Marston myronmarston We can't count on hash ordering.
...so use an array of tuples instead.

Closes #144.
3cf9110
Myron Marston myronmarston Cleanup code a bit.
- Remove bang from method...as @justinko rightly pointed out, there's no corresponding bangless method so it didn't really follow convention here.
- Use an early guarded return.
8567ac6
Commits on May 12, 2012
Myron Marston myronmarston Add yard docs for new modules.
[ci skip]
f1b8aa2
Myron Marston myronmarston Add match_array matcher method for the old =~ array matcher.
This is needed because we've decided not to support operator matchers off of `expect(value).to`, and `match_array` is the best name we've come up with for it.
f00de57
Commits on May 13, 2012
David Chelimsky dchelimsky Remove obsolete spec
- it wasn't running because it was dynamically bound to classes that
  were no longer being found.
- it was specifying an age-old protocol that isn't used by
  rspec-expectations, so it would never be used.
5626043
Commits on May 17, 2012
Su Zhang (張甦) zhangsu Fix confusing error message in `be_within`
This is a patch for the following issue:

#92

It is possible to have duck typing for numerical operations, but the minus
sign is often used for other operations as well such as the set
difference that Array#- performs. In that case, even if it does not fail
on the :- method, it will probably fail on the subsequent :abs and :<=
calls.
675115d
Justin Ko justinko Merge pull request #145 from zhangsu/master
Fix confusing error message in `be_within`
d186bf8
Justin Ko justinko Clearer error message for previous commit. d55d9a8
Justin Ko justinko Make "validation" methods for the be_within matcher class private. 1cac6bc
Justin Ko justinko changelog 605a520
Commits on May 21, 2012
David Chelimsky dchelimsky dev: update Guardfile to run everything when matchers change c450e3d
David Chelimsky dchelimsky refactor BeWithin to be more self-contained.
More explicit and consistent in dealing with instance variables rather
than relying on knowledge of how BaseMatcher handles them.
38b247a
David Chelimsky dchelimsky minor refactoring: use implicit return 123169e
Commits on May 22, 2012
David Chelimsky dchelimsky dev: --backtrace 4c4c8dc
David Chelimsky dchelimsky refactor built-in matchers
Removed default initialize and matches? from the BaseMatcher and added
explicit initialization where needed.
a465f14
David Chelimsky dchelimsky Fix some cukes broken by the previous matcher refactoring (messages c…
…hanged)
b396938
Myron Marston myronmarston Merge pull request #119 from rspec/expect_syntax
Add support for `expect(value)` syntax.
71a2c8d
Myron Marston myronmarston Update changelog. f9574db
Myron Marston myronmarston More changelog updates. 9793323
Commits on May 25, 2012
Bryan Helmkamp brynary Add Code Climate badge 99fb8ce
David Chelimsky dchelimsky Merge pull request #146 from brynary/codeclimate-badge
Add Code Climate badge
089aca4
Commits on Jun 05, 2012
Myron Marston myronmarston Add more docs on syntax configuration.
Closes #149.
5dd161e
Commits on Jun 07, 2012
Justin Ko justinko Use `eq` instead of `==` for built-in matcher failure message. 43526ec
Commits on Jun 14, 2012
David Chelimsky dchelimsky put the rdoc for should, should_not, and expect where yard can pick i…
…t up
7847016
Commits on Jun 15, 2012
Myron Marston myronmarston Add `should` and `should_not` to BasicObject on 1.9.
For #114.
4325717
Myron Marston myronmarston Add #add_should_and_should_not to configuration API.
This allows users to manually add these methods to proxy objects that do not have them.

Closes #114.
a954586
Myron Marston myronmarston Update changelog.
[ci skip]
6a8c932
Commits on Jun 20, 2012
David Chelimsky dchelimsky refactor matchers to use BaseMatcher's initialize and matches? methods 4024344
Commits on Jun 23, 2012
David Chelimsky dchelimsky Change BaseMatcher to a class.
It was a module, but it was really acting as a base class (it was even
in the name).

Very slightly more efficient (see benchmarks/include_v_superclass.rb)
49dc451
Commits on Jun 25, 2012
David Chelimsky dchelimsky ensure the eq matcher sends :== to actual (not expected) a3e2839
Commits on Jul 07, 2012
David Chelimsky dchelimsky add travis badge to README adaaa9b
David Chelimsky dchelimsky space, the final frontier b394f47
David Chelimsky dchelimsky bump to 2.11.0 45161a7
David Chelimsky dchelimsky improve automation for publishing to relishapp.com 705ddc5
Commits on Jul 08, 2012
David Chelimsky dchelimsky Constrain `actual` in `be_within` matcher to values that respond to `-`
instead of requiring a specific type.

- `Time`, for example, is a legit alternative.
- Fixes issue introduced by #145
1d2cc1f
David Chelimsky dchelimsky changelog for 2.11.1 release c6da0f6
David Chelimsky dchelimsky loosen time constraint for be_within example 79febad
Commits on Jul 10, 2012
David Chelimsky dchelimsky enhance rdoc for expect syntax ebd8a4c
David Chelimsky dchelimsky tweak README (expect syntax) d5417f9
Commits on Jul 13, 2012
Myron Marston myronmarston Remove the hacky search for should_not in backtrace.
It wasn't working for the `expect { .. }.to` syntax, anyway.
9814ab2
Myron Marston myronmarston Loosen error message constraints for raise_error matcher specs.
This is in prep for #59--once I had some backtrace info, all of these would fail since they are doing exact string matches.
2c2fdb6
Commits on Jul 17, 2012
Alex Coplan alexcoplan add support for coloured diffs dbe5aa3
Alex Coplan alexcoplan fixed coloring, added tests for colored diff 54b9e98
Alex Coplan alexcoplan tests now stub color config, removed setter in config 505db9f
Alex Coplan alexcoplan no magic nums, yellow->green for insertions 477fac1
Alex Coplan alexcoplan fixed chr grabbing for older rb implementations 83cdba4
Commits on Jul 18, 2012
Myron Marston myronmarston Merge pull request #157 from alexcoplan/color_diffs
Colored Diffs
3b4f60c
Myron Marston myronmarston Update changelog. 067f13d
Commits on Jul 19, 2012
David Chelimsky dchelimsky move post-2.11.1 enhancements in changelog 024002c
Commits on Jul 25, 2012
Gabriel Gilder ggilder #159: Revise should(_not) to work with MacRuby 9c9619b
Myron Marston myronmarston Merge pull request #160 from ggilder/master
#159: Revise should(_not) to work with MacRuby
d51bf72
Myron Marston myronmarston Add change log entry for #160. 147f710
alindeman alindeman Be defensive about resolving `Object`
It'd be pretty crazy for there to be an `RSpec::Object` or
`RSpec::Expectations::Object,` but 1) Ruby's constant resolution rules
have changed and I don't always remember them and 2) We were originally
defensive about it.
3cacdde
Commits on Jul 26, 2012
Myron Marston myronmarston Cherry-pick 2.11.2 release stuff from 2-11-maint branch. c897a47
Commits on Jul 27, 2012
Myron Marston myronmarston Ensure #== is defined on build in matchers so that they can be composed.
For example:

expect {
  user.emailed!
}.to change{user.last_emailed_at}.from(nil).to be_within(1.second).of(Time.zone.now)

Closes #161.
d427bac
Commits on Aug 25, 2012
Alex Coplan alexcoplan use same color config method as core 94fce05
Alex Coplan alexcoplan improve diff coloring code 248004e
Alex Coplan alexcoplan revert to using static color methods 7cdd88b
Myron Marston myronmarston Merge pull request #169 from alexcoplan/better_diff_coloring
Better diff coloring
f4d4cd0
Commits on Aug 26, 2012
Myron Marston myronmarston Run all specs together and in isolation for build.
We want them to be able to pass when run in isolation w/o bundler being loaded.
b0d5007
Myron Marston myronmarston Fix ruby warnings.
/Users/myron/code/rspec-dev/repos/rspec-expectations/lib/rspec/matchers/dsl.rb:8: warning: method redefined; discarding old ignore
/Users/myron/code/rspec-dev/repos/rspec-expectations/lib/rspec/matchers/dsl.rb:8: warning: previous definition of ignore was here
a8d9014
Myron Marston myronmarston Improve how we find the path to the rspec exe.
On travis, it found `/home/travis/builds/rspec/exe/rspec`,
and that didn't exist. I'm not sure why it didn't find the
one in rspec-core, but I think this'll fix it.
cafef45
Myron Marston myronmarston Revert recent build change -- it's not working on Travis CI.
I need to head to bed in a bit and I don't want to leave the build
broken. I'll put this in a branch and play with it there to
get it to work.

- Revert "Improve how we find the path to the rspec exe."
  This reverts commit cafef45.
- Revert "Run all specs together and in isolation for build."
  This reverts commit b0d5007.
aa4530d
Commits on Sep 05, 2012
Myron Marston myronmarston Fix and deprecate `expect { }.should` syntax.
Fixes #170.
b89b8c5
Myron Marston myronmarston Add missing changelog entry I forgot to add.
This was fixed in d427bac.
016aece
Myron Marston myronmarston Add 2.11.3 release info. cf6cf5d
Commits on Sep 06, 2012
Myron Marston myronmarston Fix full changelog URL. d5e6e36
Commits on Sep 08, 2012
David Chelimsky dchelimsky run should_clean gem (it "does ... v it "should ...) 3c0e7ea
Commits on Sep 10, 2012
Myron Marston myronmarston Fix and re-enable the test_all build.
I had previously attempted to add this in b0d5007 but find_path_to_rspec_exe wasn't quite right.

Travis installs rspec-core as a :git gem so the path is `.../rspec-core-<sha>/lib`, not `.../rspec-core/lib`.
46d5347
Myron Marston myronmarston Use stub_const rather than hand-rolled const mutation.
This also fixes a warning I was getting on the 1.8.7 build:

rspec-expectations/spec/rspec/matchers/have_spec.rb:13: warning: redefine pluralize
d0773b1
Commits on Sep 12, 2012
David Chelimsky whitespace 60a58ec
David Chelimsky update Gemfile-custom 66ad37c
David Chelimsky more custom Gemfile updates d3d8672
Commits on Sep 27, 2012
Sam Phippen samphippen Make the include matcher require the key to exist in the hash.
There was a weird case where {}.should include(:something => nil) would
pass, Myron suggested we make this not the case. Here's a patch that
does that

Signed-off-by: Sam Phippen <samphippen@googlemail.com>
04eb38d
Myron Marston myronmarston Fix typo. cfaf6b5
Commits on Oct 01, 2012
Myron Marston myronmarston Allow rbx-19mode build to fail (for now).
We've been getting a strange failure on rbx-19 that I can't reproduce locally:

https://travis-ci.org/#!/rspec/rspec-expectations/jobs/2583529
8c7cc53
alindeman alindeman Tests specifically for ability to use ::RSpec.configuration, not ::RS…
…pec::Core

* It is possible for RSpec::Core to be defined, but not be fully loaded
  enough for RSpec.configuration to be accessible because
  rspec-core.gemspec requires 'lib/rspec/core/version' which defines
  RSpec::Core::Version but nothing else.
e20978f
Commits on Oct 03, 2012
alindeman alindeman Document inline code samples with backticks
* Hopefully prevents relishapp from considering the _ as italics
4c0dfd7
Commits on Oct 04, 2012
alindeman alindeman Fixes the build on rbx
* rbx confusingly raises a NoMethodError in the error case described in
  `access_running_example.feature`. MRI and JRuby raise NameError.
  Because matching exactly isn't super-important, let's just match less
  stringently on the error message.
32a1feb
Myron Marston myronmarston Fixup documentation output of configuration specs. 1644904
Commits on Oct 09, 2012
Myron Marston myronmarston Include backtrace in errors reported by `raise_error` matcher.
It's hard to troubleshoot unexpected errors when the backtrace is silenced,
as it was previously.

Closes #59.
4a919ab
Myron Marston myronmarston Merge pull request #177 from rspec/issue_59
Include backtrace in errors reported by `raise_error` matcher.
16a133f
Myron Marston myronmarston Allow rbx builds to fail.
    
We're getting weird sudden regressions on rbx, and given the frequency of
RBX updates (and recent experience with failing rbx bulids in VCR and other
rspec repos), I think it's due to a bug in rbx.
2f1595f
Commits on Oct 12, 2012
Patrick Van Stee vanstee Identify ruby code for syntax highlighting
Fixes #178
733e5d8
alindeman alindeman Merge pull request #180 from vanstee/ruby_file_doc_strings
Identify ruby code for syntax highlighting
5bb512a
Commits on Oct 13, 2012
Myron Marston myronmarston Rbx builds are passing now thanks to @alindeman.
rspec/rspec-core@96e3d13
rspec/rspec-core@582a0a8

Revert "Allow rbx builds to fail."

This reverts commit 2f1595f.
e4eee95
Commits on Oct 16, 2012
alindeman alindeman Build on JRuby --1.9 32799c0
alindeman alindeman Scopes documentation gems and avoids installing them on Travis f4e53a9
David Chelimsky dchelimsky README - recommend eq over == 13d69c3
alindeman alindeman JRuby --1.9 is green c8ddb5e
Commits on Oct 17, 2012
Sam Phippen samphippen Warn if the "message" param passed to a should is not a string 518a0f7
Myron Marston myronmarston It's a warning, not an error. 0e706c6
Myron Marston myronmarston Improve wording of warning. a6365b0
Myron Marston myronmarston Cleanup whitespace. cd196c5
Myron Marston myronmarston Update changelog. f4f2a29
Commits on Oct 21, 2012
Myron Marston myronmarston Use `hide_const` at a place where we really just want to hide a const…
…ant.
f88feba
Commits on Oct 23, 2012
Myron Marston myronmarston Cleanup whitespace. e2ef482
Myron Marston myronmarston Add spec demonstrating odd `method_missing` behavior.
I ran into this in some rspec-mocks specs but traced it back to rspec-expectations.
0e69857