Skip to content

Upgrading rspec 0.7 to 0.8

Unknown0.7.5.1 → 0.8.2

Fetching 1 release from GitHub…0 / 1
UnknownUpgrade verdict

DepDelta is still reading the notes for this range, so breaking changes can't be ruled out yet.

  • DepDelta is still reading the release notes in this range, so it can't rule out breaking changes yet.
  • This page updates as the notes come in.
Still reading release notes

DepDelta is still reading the release notes in this range. This updates as they come in.

Generated by DepDelta from published Ruby source. Not mixed with prose notes.

  • removed: class Numeric
  • removed: class SpecMatcher
  • removed: constructor SpecMatcher(_, _)
  • removed: method SpecMatcher.matches?(_)
  • added: class Symbol
  • added: protected method InstanceMethods.notify_class_callbacks(_, *)
  • removed: const VERSION.MINISCULE
  • removed: static method Expectations.build_message(_, _, _)
  • removed: static method Expectations.message_builder()
  • changed: static method Expectations.fail_with(_) → static method Expectations.fail_with(_, _ = …, _ = …)
  • added: class Translator
  • added: method Matchers.be(*)
  • added: method Matchers.be_close(_, _)
  • added: method Matchers.change(_ = …, _ = …)
  • added: method Matchers.eql(_)
  • added: method Matchers.equal(_)
  • added: method Matchers.have(_)
  • added: method Matchers.have_at_least(_)
  • added: method Matchers.have_at_most(_)
  • added: method Matchers.have_exactly(_)
  • added: method Matchers.include(_)
  • added: method Matchers.match(_)
  • added: method Matchers.raise_error(_ = …, _ = …)
  • added: method Matchers.respond_to(_)
  • added: method Matchers.satisfy()
  • added: method Matchers.throw_symbol(_ = …)
  • added: method Mocks.duck_type(*)
  • added: method Mocks.mock(_, _ = …)
  • added: method Mocks.stub(_, _ = …)
  • added: method Translator.standard_matcher?(_)
  • added: method Translator.translate(_)
  • added: method Translator.translate_dir(_, _)
  • added: method Translator.translate_file(_, _)
  • added: module Matchers
  • added: static method VERSION.build_tag()
  • added: static property Expectations.differ: accessor
  • added: static set Matchers.generated_description(_)
  • removed: class MessageBuilder
  • removed: method MessageBuilder.build_message(_, _, _)
  • removed: method NumericExpectations.should_be_close(_, _)
  • removed: method ObjectExpectations.should_be(_ = …)
  • removed: method ObjectExpectations.should_be_a_kind_of(_)
  • removed: method ObjectExpectations.should_be_an_instance_of(_)
  • removed: method ObjectExpectations.should_be_instance_of(_)
  • removed: method ObjectExpectations.should_be_kind_of(_)
  • removed: method ObjectExpectations.should_eql(_)
  • removed: method ObjectExpectations.should_equal(_)
  • removed: method ObjectExpectations.should_have(_)
  • removed: method ObjectExpectations.should_have_at_least(_)
  • removed: method ObjectExpectations.should_have_at_most(_)
  • removed: method ObjectExpectations.should_have_exactly(_)
  • removed: method ObjectExpectations.should_include(_)
  • removed: method ObjectExpectations.should_not_be(_ = …)
  • removed: method ObjectExpectations.should_not_be_a_kind_of(_)
  • removed: method ObjectExpectations.should_not_be_an_instance_of(_)
  • removed: method ObjectExpectations.should_not_eql(_)
  • removed: method ObjectExpectations.should_not_equal(_)
  • removed: method ObjectExpectations.should_not_include(_)
  • removed: method ObjectExpectations.should_not_respond_to(_)
  • removed: method ObjectExpectations.should_not_satisfy()
  • removed: method ObjectExpectations.should_respond_to(_)
  • removed: method ObjectExpectations.should_satisfy()
  • removed: method StringExpectations.should_match(_)
  • removed: method StringExpectations.should_not_match(_)
  • removed: method UnderscoreSugar.handle_underscores_for_rspec!()
  • removed: module NumericExpectations
  • removed: module StringExpectations
  • removed: module UnderscoreSugar
  • changed: method ObjectExpectations.should() → method ObjectExpectations.should(_ = …)
  • changed: method ObjectExpectations.should_not() → method ObjectExpectations.should_not(_ = …)
  • added: class ExpectationMatcherHandler
  • added: class NegativeExpectationMatcherHandler
  • added: method MatcherHandlerHelper.describe(_)
  • added: method StringHelpers.starts_with?(_)
  • added: module MatcherHandlerHelper
  • added: module StringHelpers
  • added: static method ExpectationMatcherHandler.handle_matcher(_, _)
  • added: static method NegativeExpectationMatcherHandler.handle_matcher(_, _)
  • removed: method Base.<(_)
  • removed: method Base.<=(_)
  • removed: method Base.>(_)
  • removed: method Base.>=(_)
  • removed: method Base.old_default_message()
  • removed: method ItemHandler.build_message(_, _)
  • removed: method NegativeItemHandler.item_expectation()
  • removed: method Not.__delegate_method_missing_to_target(_, _, *)
  • removed: method Not.a_kind_of(_)
  • removed: method Not.an_instance_of(_)
  • removed: method Not.be(_ = …)
  • removed: method Not.change(_, _)
  • removed: method Not.have(_ = …)
  • removed: method Not.match(_)
  • removed: method Not.raise(_ = …, _ = …)
  • removed: method Not.respond_to(_)
  • removed: method Not.satisfy()
  • removed: method Not.throw(_ = …)
  • removed: method PositiveItemHandler.item_expectation()
  • removed: method Should.__delegate_method_missing_to_target(_, _, *)
  • removed: method Should.a_kind_of(_)
  • removed: method Should.an_instance_of(_)
  • removed: method Should.be(_ = …)
  • removed: method Should.change(_ = …, _ = …)
  • removed: method Should.have(_ = …)
  • removed: method Should.match(_)
  • removed: method Should.not()
  • removed: method Should.raise(_ = …, _ = …)
  • removed: method Should.respond_to(_)
  • removed: method Should.satisfy()
  • removed: method Should.throw(_)
  • removed: static set Base.differ(_)
  • changed: constructor Should(_) → constructor Should(_, _ = …)
  • changed: method Base.fail_with_message(_) → method Base.fail_with_message(_, _ = …, _ = …)
  • added: class Be
  • added: class BeClose
  • added: class Change
  • added: class Eql
  • added: class Equal
  • added: class Has
  • added: class Have
  • added: class Include
  • added: class Match
  • added: class MatcherError < StandardError
  • added: class RaiseError
  • added: class RespondTo
  • added: class Satisfy
  • added: class ThrowSymbol
  • added: constructor Be(_ = …, *)
  • added: constructor BeClose(_, _)
  • added: constructor Change(_ = …, _ = …)
  • added: constructor Eql(_)
  • added: constructor Equal(_)
  • added: constructor Has(_, *)
  • added: constructor Have(_, _ = …)
  • added: constructor Include(_)
  • added: constructor Match(_)
  • added: constructor RaiseError(_ = …, _ = …)
  • added: constructor RespondTo(_)
  • added: constructor Satisfy()
  • added: constructor ThrowSymbol(_ = …)
  • added: method Be.<(_)
  • added: method Be.<=(_)
  • added: method Be.>(_)
  • added: method Be.>=(_)
  • added: method Be.description()
  • added: method Be.expected()
  • added: method Be.failure_message()
  • added: method Be.match_or_compare()
  • added: method Be.matches?(_)
  • added: method Be.negative_failure_message()
  • added: method BeClose.description()
  • added: method BeClose.failure_message()
  • added: method BeClose.matches?(_)
  • added: method Change.actual_delta()
  • added: method Change.by(_)
  • added: method Change.execute_change()
  • added: method Change.failure_message()
  • added: method Change.from(_)
  • added: method Change.matches?(_)
  • added: method Change.negative_failure_message()
  • added: method Change.result()
  • added: method Change.to(_)
  • added: method Eql.description()
  • added: method Eql.failure_message()
  • added: method Eql.matches?(_)
  • added: method Eql.negative_failure_message()
  • added: method Equal.description()
  • added: method Equal.failure_message()
  • added: method Equal.matches?(_)
  • added: method Equal.negative_failure_message()
  • added: method Has.description()
  • added: method Has.failure_message()
  • added: method Has.matches?(_)
  • added: method Has.negative_failure_message()
  • added: method Have.description()
  • added: method Have.failure_message()
  • added: method Have.matches?(_)
  • added: method Have.negative_failure_message()
  • added: method Have.relativities()
  • added: method Include.description()
  • added: method Include.failure_message()
  • added: method Include.matches?(_)
  • added: method Include.negative_failure_message()
  • added: method Match.description()
  • added: method Match.failure_message()
  • added: method Match.matches?(_)
  • added: method Match.negative_failure_message()
  • added: method RaiseError.description()
  • added: method RaiseError.failure_message()
  • added: method RaiseError.matches?(_)
  • added: method RaiseError.negative_failure_message()
  • added: method RespondTo.description()
  • added: method RespondTo.failure_message()
  • added: method RespondTo.matches?(_)
  • added: method RespondTo.negative_failure_message()
  • added: method Satisfy.failure_message()
  • added: method Satisfy.matches?(_)
  • added: method Satisfy.negative_failure_message()
  • added: method ThrowSymbol.description()
  • added: method ThrowSymbol.failure_message()
  • added: method ThrowSymbol.matches?(_)
  • added: method ThrowSymbol.negative_failure_message()
  • removed: method MockHandler.__add(_, _, _)
  • removed: method MockHandler.clear_expectations()
  • removed: method MockHandler.clear_proxied_methods()
  • removed: method MockHandler.clear_stubs()
  • removed: method MockHandler.define_expected_method(_)
  • removed: method MockHandler.define_instance_method(_, _)
  • removed: method MockHandler.find_almost_matching_expectation(_, *)
  • removed: method MockHandler.find_matching_expectation(_, *)
  • removed: method MockHandler.find_matching_method_stub(_)
  • removed: method MockHandler.metaclass_eval(_)
  • removed: method MockHandler.reset_proxied_methods()
  • removed: method MockHandler.verify_expectations()
  • removed: method MockMethods.__reset_mock()
  • removed: method MockMethods.__verify()
  • removed: method MockMethods.received_message?(_, *)
  • removed: method MockMethods.should_not_receive(_)
  • removed: method MockMethods.should_receive(_, _ = …)
  • removed: method MockMethods.stub!(_)
  • removed: module MockMethods
  • changed: class AmbiguousReturnError < Expectations::ExpectationNotMetError → class AmbiguousReturnError < StandardError
  • changed: class MockExpectationError < Expectations::ExpectationNotMetError → class MockExpectationError < StandardError
  • changed: method BaseExpectation.invoke_consecutive_return_block(_, _) → protected method BaseExpectation.invoke_consecutive_return_block(_, _)
  • changed: method BaseExpectation.invoke_method_block(_) → protected method BaseExpectation.invoke_method_block(_)
  • changed: method BaseExpectation.invoke_return_block(_, _) → protected method BaseExpectation.invoke_return_block(_, _)
  • changed: method BaseExpectation.invoke_with_yield(_) → protected method BaseExpectation.invoke_with_yield(_)
  • changed: method MessageExpectation.set_expected_received_count(_, _) → protected method MessageExpectation.set_expected_received_count(_, _)
  • added: class MatcherConstraint
  • added: constructor MatcherConstraint(_)
  • added: method ArgumentExpectation.is_matcher?(_)
  • added: method MatcherConstraint.matches?(_)
  • added: method Methods.__reset_mock()
  • added: method Methods.__verify()
  • added: method Methods.received_message?(_, *)
  • added: method Methods.should_not_receive(_)
  • added: method Methods.should_receive(_, _ = …)
  • added: method Methods.stub!(_)
  • added: module Methods
  • removed: method SpecTask.file_list()
  • removed: property SpecTask.drb: accessor
  • added: method SpecTask.spec_file_list()
  • removed: method HeckleRunner.heckle_module()
  • removed: method Specification.matches_matcher?(_)
  • removed: property Specification.command: reader
  • changed: class Heckler < Heckle::Base → class Heckler < (Heckle.const_defined?(:Base) ? Heckle::Base : Heckle)
  • added: class SpecMatcher
  • added: constructor HeckleRunner(_)
  • added: constructor SpecMatcher(_, _ = …)
  • added: method HeckleRunner.heckle_class_or_module(_)
  • added: method HeckleRunner.heckle_method(_, _)
  • added: method HeckleRunner.verify_constant(_)
  • added: method SpecMatcher.matches?(_)
  • added: method Specification.matches?(_, _)
  • added: property SpecMatcher.spec_desc: writer
  • added: property Specification.spec_block: reader
  • added: protected static property Specification.current: accessor
  • added: static property Specification.generated_description: accessor
  • removed: method InstanceMethods.context_setup()
  • removed: method InstanceMethods.context_teardown()
  • removed: method InstanceMethods.setup()
  • removed: method InstanceMethods.specify(_, _ = …)
  • removed: method InstanceMethods.teardown()
  • changed: method InstanceMethods.matches?(_, _ = …) → method InstanceMethods.matches?(_)
  • changed: method ModuleMethods.specify(_, _ = …) → method ModuleMethods.specify(_ = …, _ = …)
  • removed: method InstanceMethods.duck_type(*)
  • removed: method InstanceMethods.mock(_, _ = …)
  • changed: constructor InstanceMethods(_) → constructor InstanceMethods(*)
  • added: const HtmlFormatter.HEADER_1
  • added: const HtmlFormatter.HEADER_2
  • added: method HtmlFormatter.extra_header_content()
  • added: property HtmlFormatter.current_context_number: reader
  • added: property HtmlFormatter.current_spec_number: reader
  • added: protected method BaseTextFormatter.output_to_tty?()
  • removed: module ClassMethods
  • removed: protected property ClassMethods.current: accessor