Commits on May 16, 2013
  1. @dchelimsky
  2. @dchelimsky

    explicitly enable :should syntax for mocks in cuke

    Cuke was failing since we merged expect syntax for mocks into
    rspec-mocks master.
    dchelimsky committed May 16, 2013
  3. @dchelimsky
  4. @dchelimsky

    spec that not_to raise_error(SpecificErrorClass) is deprecated

    This also removes deprecation warnings that were showing up in rspec's
    own output running specs for rspec-expectations.
    dchelimsky committed May 16, 2013
  5. @dchelimsky
  6. @dchelimsky
  7. @dchelimsky
Commits on May 10, 2013
  1. @samphippen

    Add a changelog entry for #247.

    Signed-off-by: Sam Phippen <samphippen@googlemail.com>
    samphippen committed May 10, 2013
  2. @samphippen

    Merge branch '247'

    samphippen committed May 10, 2013
Commits on May 9, 2013
  1. @tomykaira

    Fix warning message

    tomykaira committed May 9, 2013
  2. @tomykaira

    Warn when raise_error receives non-proc object

    When a non-proc object is given, `given_proc.call` fails, then `raise_error` or
    `raise_error(NoMethodError)` passes.
    
    This behaviour is dangerous and there is actually no error, so it should warn
    and fail.
    tomykaira committed May 9, 2013
Commits on May 1, 2013
  1. @JonRowe

    Show warnings

    JonRowe committed May 1, 2013
Commits on Apr 28, 2013
  1. @samphippen

    Add a changelog entry for #245.

    [ci skip]
    
    Signed-off-by: Sam Phippen <samphippen@googlemail.com>
    samphippen committed Apr 28, 2013
  2. @samphippen

    Merge pull request #245 from tovodeverett/master

    Accept duck-typed strings that respond to :to_str as messages
    samphippen committed Apr 28, 2013
  3. @tovodeverett

    Accept duck-typed strings that respond to :to_str as messages

    * Modified message validation code to look for duck-typed strings that
      respond to :to_str instead of checking for being a real String.
    * Extended test suite to test for and pin down the desired behavior,
      including verifying that objects that respond to :to_s but not :to_str
      are not accepted.
    tovodeverett committed Apr 27, 2013
Commits on Apr 24, 2013
  1. @samphippen

    Merge pull request #244 from samphippen/deprecate-not-raise-specific-…

    …error-class
    
    Deprecate `expect { }.not_to raise_error(SpecificErrorClass)`
    samphippen committed Apr 24, 2013
  2. @samphippen

    Remove a debugging print in raise_error

    Signed-off-by: Sam Phippen <samphippen@googlemail.com>
    samphippen committed Apr 25, 2013
  3. @samphippen

    Add backticks to the raise_error(SomeClass) error message.

    Signed-off-by: Sam Phippen <samphippen@googlemail.com>
    samphippen committed Apr 25, 2013
  4. @samphippen

    Add an extra space between expect and {} in raise_error

    Signed-off-by: Sam Phippen <samphippen@googlemail.com>
    samphippen committed Apr 25, 2013
  5. @samphippen

    Fix up raise_error specs for specific error class deprecation

    Signed-off-by: Sam Phippen <samphippen@googlemail.com>
    samphippen committed Apr 25, 2013
  6. @samphippen

    Fix conditionals for raise_error deprecation

    includes breaking out an "expecting_specific_exception?" query.
    
    Signed-off-by: Sam Phippen <samphippen@googlemail.com>
    samphippen committed Apr 25, 2013
  7. @samphippen

    Break excessively long line up in raise_error

    Signed-off-by: Sam Phippen <samphippen@googlemail.com>
    samphippen committed Apr 25, 2013
Commits on Apr 21, 2013
  1. @samphippen

    Add a changelog entry for #244

    Signed-off-by: Sam Phippen <samphippen@googlemail.com>
    samphippen committed Apr 21, 2013
  2. @samphippen

    Deprecate `expect { }.not_to raise_error(SpecificErrorClass)`

    Signed-off-by: Sam Phippen <samphippen@googlemail.com>
    samphippen committed Apr 21, 2013
Commits on Apr 17, 2013
  1. @samphippen

    Merge pull request #243 from l15n/feature-readme-broken-link

    Fix broken link to Should.md in features/built-ins README
    samphippen committed Apr 17, 2013
  2. @l15n

    Fix broken link to Should.md

    l15n committed Apr 17, 2013
  3. @myronmarston

    Merge pull request #242 from l15n/readme-fix-broken-link

    Fix broken link to Should.md
    myronmarston committed Apr 16, 2013
  4. @l15n

    Fix broken link to Should.md

    l15n committed Apr 17, 2013
Commits on Apr 15, 2013
  1. @myronmarston

    Merge pull request #236 from samphippen/fix-raise-error-with-instances

    Fix raise error when the expectation target is an error instance.
    myronmarston committed Apr 15, 2013
  2. @samphippen

    Interpolate from exception instances in raise_error spec

    Signed-off-by: Sam Phippen <samphippen@googlemail.com>
    samphippen committed Apr 15, 2013
  3. @samphippen

    Use === for type comparison instead of is_a?

    Signed-off-by: Sam Phippen <samphippen@googlemail.com>
    samphippen committed Apr 15, 2013
  4. @samphippen

    Remove the now unused expected_error_class method in raise_error

    Signed-off-by: Sam Phippen <samphippen@googlemail.com>
    samphippen committed Apr 15, 2013
  5. @samphippen

    Add some specs for fixed instance raise_error behaviour

    Signed-off-by: Sam Phippen <samphippen@googlemail.com>
    samphippen committed Apr 10, 2013
  6. @samphippen

    Change error instance implementation to match == instances, or classes

    Signed-off-by: Sam Phippen <samphippen@googlemail.com>
    samphippen committed Apr 10, 2013
  7. @samphippen

    Fix raise error when the expectation target is an error instance.

    This closes #232
    
    Signed-off-by: Sam Phippen <samphippen@googlemail.com>
    samphippen committed Apr 10, 2013