Upgrading rspec 0.6 to 0.7
Unknown0.6.4 → 0.7.5.1
Fetching 7 releases from GitHub…0 / 7
UnknownUpgrade verdict
DepDelta is still reading the notes for this range, so breaking changes can't be ruled out yet.
In plain terms
- 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.
Must act Still reading release notes
DepDelta is still reading the release notes in this range. This updates as they come in.
API changes
Generated by DepDelta from published Ruby source. Not mixed with prose notes.
- removed:
class Array - removed:
class Class - removed:
class FalseClass - removed:
class Method - removed:
class NilClass - removed:
class RubySource < String - removed:
class RubyToRuby < SexpProcessor - removed:
class Symbol - removed:
class TrueClass - removed:
constructor RubyToRuby() - removed:
method Array.inspect_for_expectation_not_met_error() - removed:
method Class.inspect_for_expectation_not_met_error() - removed:
method FalseClass.inspect_for_expectation_not_met_error() - removed:
method Method.defined_in() - removed:
method Method.name() - removed:
method NilClass.inspect_for_expectation_not_met_error() - removed:
method Numeric.close?(_, _) - removed:
method Numeric.inspect_for_expectation_not_met_error() - removed:
method Object.inspect_for_expectation_not_met_error() - removed:
method Object.instance_exec(*) - removed:
method Object.parse_tree(_ = …) - removed:
method Object.source(_ = …) - removed:
method Proc.inspect_for_expectation_not_met_error() - removed:
method RubySource.inspect() - removed:
method RubyToRuby.cond_indent_process(_) - removed:
method RubyToRuby.cond_loop(_, _) - removed:
method RubyToRuby.indent(_) - removed:
method RubyToRuby.process_and(_) - removed:
method RubyToRuby.process_args(_) - removed:
method RubyToRuby.process_array(_) - removed:
method RubyToRuby.process_attrasgn(_) - removed:
method RubyToRuby.process_begin(_) - removed:
method RubyToRuby.process_block(_) - removed:
method RubyToRuby.process_block_arg(_) - removed:
method RubyToRuby.process_block_pass(_) - removed:
method RubyToRuby.process_bmethod(_) - removed:
method RubyToRuby.process_call(_) - removed:
method RubyToRuby.process_case(_) - removed:
method RubyToRuby.process_class(_) - removed:
method RubyToRuby.process_colon2(_) - removed:
method RubyToRuby.process_const(_) - removed:
method RubyToRuby.process_dasgn_curr(_) - removed:
method RubyToRuby.process_defn(_) - removed:
method RubyToRuby.process_dot2(_) - removed:
method RubyToRuby.process_dot3(_) - removed:
method RubyToRuby.process_dstr(_) - removed:
method RubyToRuby.process_dvar(_) - removed:
method RubyToRuby.process_ensure(_) - removed:
method RubyToRuby.process_false(_) - removed:
method RubyToRuby.process_fbody(_) - removed:
method RubyToRuby.process_fcall(_) - removed:
method RubyToRuby.process_for(_) - removed:
method RubyToRuby.process_gvar(_) - removed:
method RubyToRuby.process_hash(_) - removed:
method RubyToRuby.process_iasgn(_) - removed:
method RubyToRuby.process_if(_) - removed:
method RubyToRuby.process_iter(_) - removed:
method RubyToRuby.process_ivar(_) - removed:
method RubyToRuby.process_lasgn(_) - removed:
method RubyToRuby.process_lit(_) - removed:
method RubyToRuby.process_lvar(_) - removed:
method RubyToRuby.process_masgn(_) - removed:
method RubyToRuby.process_module(_) - removed:
method RubyToRuby.process_nil(_) - removed:
method RubyToRuby.process_not(_) - removed:
method RubyToRuby.process_or(_) - removed:
method RubyToRuby.process_resbody(_) - removed:
method RubyToRuby.process_rescue(_) - removed:
method RubyToRuby.process_retry(_) - removed:
method RubyToRuby.process_return(_) - removed:
method RubyToRuby.process_scope(_) - removed:
method RubyToRuby.process_self(_) - removed:
method RubyToRuby.process_str(_) - removed:
method RubyToRuby.process_super(_) - removed:
method RubyToRuby.process_true(_) - removed:
method RubyToRuby.process_until(_) - removed:
method RubyToRuby.process_vcall(_) - removed:
method RubyToRuby.process_when(_) - removed:
method RubyToRuby.process_while(_) - removed:
method RubyToRuby.process_yield(_) - removed:
method RubyToRuby.process_zarray(_) - removed:
method RubyToRuby.process_zsuper(_) - removed:
method String.inspect_for_expectation_not_met_error() - removed:
method Symbol.supported_by_rspec?() - removed:
method TrueClass.inspect_for_expectation_not_met_error() - removed:
module Test - removed:
static method RubyToRuby.translate(_, _ = …) - added:
method Object.copy_instance_variables_from(_, _ = …) - added:
module Callback
- added:
class CallbackContainer - added:
constructor CallbackContainer() - added:
method CallbackContainer.clear() - added:
method CallbackContainer.define(_, _ = …) - added:
method CallbackContainer.notify(_, *) - added:
method CallbackContainer.undefine(_, _) - added:
method InstanceMethods.register_callback(_, _ = …) - added:
method InstanceMethods.unregister_callback(_, _) - added:
method ModuleMethods.callback_events(*) - added:
module InstanceMethods - added:
module ModuleMethods - added:
protected method CallbackContainer.extract_callback(_, _ = …) - added:
protected method InstanceMethods.callbacks() - added:
protected method InstanceMethods.notify_callbacks(_, *)
- removed:
module InstanceExecHelper
- removed:
class Mock - removed:
method Mocks.find_matching_expectation(_, *) - removed:
method Mocks.message_received(_, *) - removed:
module TestToSpec - added:
const VERSION.FULL_VERSION - added:
const VERSION.MINISCULE - added:
const VERSION.REV - added:
static method Expectations.build_message(_, _, _) - added:
static method Expectations.fail_with(_) - added:
static method Expectations.message_builder()
- removed:
class HaveHelper < ShouldBase - removed:
class ShouldBase - removed:
class ShouldHelper < ShouldBase - removed:
class ShouldNegator < ShouldBase - removed:
constructor HaveHelper(_, _ = …, _ = …) - removed:
constructor ShouldHelper(_) - removed:
constructor ShouldNegator(_) - removed:
method HaveHelper.actual_size(_) - removed:
method HaveHelper.as_specified?(_, _) - removed:
method HaveHelper.build_message(_, _) - removed:
method HaveHelper.collection(_, _) - removed:
method ShouldBase.default_message(_, _ = …) - removed:
method ShouldBase.diff_as_string(_, _, _ = …, _ = …) - removed:
method ShouldBase.fail_with_message(_) - removed:
method ShouldBase.find_supported_sym(_) - removed:
method ShouldBase.old_default_message() - removed:
method ShouldBase.respond_to?(_) - removed:
method ShouldHelper.a_kind_of(_) - removed:
method ShouldHelper.an_instance_of(_) - removed:
method ShouldHelper.be(_ = …) - removed:
method ShouldHelper.equal(_) - removed:
method ShouldHelper.have(_ = …) - removed:
method ShouldHelper.have_at_least(_ = …) - removed:
method ShouldHelper.have_at_most(_ = …) - removed:
method ShouldHelper.have_exactly(_ = …) - removed:
method ShouldHelper.match(_) - removed:
method ShouldHelper.not() - removed:
method ShouldHelper.raise(_ = …, _ = …) - removed:
method ShouldHelper.respond_to(_) - removed:
method ShouldHelper.satisfy() - removed:
method ShouldHelper.throw(_) - removed:
method ShouldNegator.a_kind_of(_) - removed:
method ShouldNegator.an_instance_of(_) - removed:
method ShouldNegator.be(_ = …) - removed:
method ShouldNegator.equal(_) - removed:
method ShouldNegator.match(_) - removed:
method ShouldNegator.raise(_ = …, _ = …) - removed:
method ShouldNegator.respond_to(_) - removed:
method ShouldNegator.satisfy() - removed:
method ShouldNegator.throw(_ = …) - added:
class MessageBuilder - added:
method MessageBuilder.build_message(_, _, _) - added:
method NumericExpectations.should_be_close(_, _) - added:
method ObjectExpectations.should_be(_ = …) - added:
method ObjectExpectations.should_be_a_kind_of(_) - added:
method ObjectExpectations.should_be_an_instance_of(_) - added:
method ObjectExpectations.should_be_instance_of(_) - added:
method ObjectExpectations.should_be_kind_of(_) - added:
method ObjectExpectations.should_eql(_) - added:
method ObjectExpectations.should_equal(_) - added:
method ObjectExpectations.should_have(_) - added:
method ObjectExpectations.should_have_at_least(_) - added:
method ObjectExpectations.should_have_at_most(_) - added:
method ObjectExpectations.should_have_exactly(_) - added:
method ObjectExpectations.should_include(_) - added:
method ObjectExpectations.should_not() - added:
method ObjectExpectations.should_not_be(_ = …) - added:
method ObjectExpectations.should_not_be_a_kind_of(_) - added:
method ObjectExpectations.should_not_be_an_instance_of(_) - added:
method ObjectExpectations.should_not_eql(_) - added:
method ObjectExpectations.should_not_equal(_) - added:
method ObjectExpectations.should_not_include(_) - added:
method ObjectExpectations.should_not_respond_to(_) - added:
method ObjectExpectations.should_not_satisfy() - added:
method ObjectExpectations.should_respond_to(_) - added:
method ObjectExpectations.should_satisfy() - added:
method ProcExpectations.should_change(_ = …, _ = …) - added:
method ProcExpectations.should_not_change(_, _) - added:
method ProcExpectations.should_not_raise(_ = …, _ = …) - added:
method ProcExpectations.should_not_throw(_ = …) - added:
method ProcExpectations.should_raise(_ = …, _ = …) - added:
method ProcExpectations.should_throw(_) - added:
method StringExpectations.should_match(_) - added:
method StringExpectations.should_not_match(_) - added:
module Differs - added:
module NumericExpectations - added:
module ProcExpectations - added:
module Should - added:
module StringExpectations
- added:
class Default - added:
constructor Default(_ = …, _ = …, _ = …) - added:
method Default.diff_as_object(_, _) - added:
method Default.diff_as_string(_, _)
- added:
class Base - added:
class Change < Base - added:
class CollectionHandler - added:
class Have - added:
class ItemHandler - added:
class NegativeItemHandler < ItemHandler - added:
class Not < Base - added:
class NotChange < Change - added:
class NotHave < Have - added:
class PositiveItemHandler < ItemHandler - added:
class Should < Base - added:
constructor Change(_, _ = …, _ = …) - added:
constructor CollectionHandler(_, _ = …, _ = …) - added:
constructor Have(_, _ = …, _ = …) - added:
constructor ItemHandler(_) - added:
constructor Not(_) - added:
constructor Should(_) - added:
method Base.<(_) - added:
method Base.<=(_) - added:
method Base.==(_) - added:
method Base.=~(_) - added:
method Base.>(_) - added:
method Base.>=(_) - added:
method Base.default_message(_, _ = …) - added:
method Base.fail_with_message(_) - added:
method Base.find_supported_sym(_) - added:
method Base.old_default_message() - added:
method Change.by(_) - added:
method Change.evaluate_change() - added:
method Change.execute_change() - added:
method Change.from(_) - added:
method Change.message() - added:
method Change.to(_) - added:
method CollectionHandler.actual_size_of(_) - added:
method CollectionHandler.as_specified?(_, _) - added:
method CollectionHandler.at_least(_ = …) - added:
method CollectionHandler.at_most(_ = …) - added:
method CollectionHandler.build_message(_, _) - added:
method CollectionHandler.collection(_, _) - added:
method CollectionHandler.handle_message(_, *) - added:
method CollectionHandler.wants_to_handle(_) - added:
method Have.init_collection_handler(_, _, _) - added:
method Have.init_item_handler(_) - added:
method ItemHandler.build_message(_, _) - added:
method ItemHandler.fail_with(_) - added:
method ItemHandler.wants_to_handle(_) - added:
method NegativeItemHandler.handle_message(_, *) - added:
method NegativeItemHandler.item_expectation() - added:
method Not.__delegate_method_missing_to_target(_, _, *) - added:
method Not.a_kind_of(_) - added:
method Not.an_instance_of(_) - added:
method Not.be(_ = …) - added:
method Not.change(_, _) - added:
method Not.have(_ = …) - added:
method Not.match(_) - added:
method Not.raise(_ = …, _ = …) - added:
method Not.respond_to(_) - added:
method Not.satisfy() - added:
method Not.throw(_ = …) - added:
method NotChange.evaluate_change() - added:
method NotHave.init_item_handler(_) - added:
method PositiveItemHandler.handle_message(_, *) - added:
method PositiveItemHandler.item_expectation() - added:
method Should.__delegate_method_missing_to_target(_, _, *) - added:
method Should.a_kind_of(_) - added:
method Should.an_instance_of(_) - added:
method Should.be(_ = …) - added:
method Should.change(_ = …, _ = …) - added:
method Should.have(_ = …) - added:
method Should.match(_) - added:
method Should.not() - added:
method Should.raise(_ = …, _ = …) - added:
method Should.respond_to(_) - added:
method Should.satisfy() - added:
method Should.throw(_) - added:
static set Base.differ(_)
- removed:
module SweetTooth
- removed:
const MockInstanceMethods.DEFAULT_OPTIONS - removed:
constructor MessageExpectation(_, _, _, _, _, _ = …) - removed:
constructor MockInstanceMethods(_, _ = …) - removed:
method MessageExpectation.and_raise(_ = …) - removed:
method MessageExpectation.and_return(_ = …) - removed:
method MessageExpectation.and_throw(_) - removed:
method MessageExpectation.and_yield(*) - removed:
method MessageExpectation.handle_order_constraint() - removed:
method MessageExpectation.invoke(_, _) - removed:
method MessageExpectation.invoke_method_block(_) - removed:
method MessageExpectation.invoke_return_block(_, _) - removed:
method MessageExpectation.invoke_with_yield(_) - removed:
method MessageExpectation.make_count_message(_) - removed:
method MessageExpectation.matches(_, _) - removed:
method MessageExpectation.pretty_print(_) - removed:
method MockInstanceMethods.__verify() - removed:
method MockInstanceMethods.should_not_receive(_) - removed:
method MockInstanceMethods.should_receive(_) - removed:
module MockInstanceMethods - changed:
class AmbiguousReturnError < StandardError → class AmbiguousReturnError < Expectations::ExpectationNotMetError - changed:
class MessageExpectation → class MessageExpectation < BaseExpectation - changed:
class MockExpectationError < StandardError → class MockExpectationError < Expectations::ExpectationNotMetError - changed:
constructor OrderGroup() → constructor OrderGroup(_) - changed:
method OrderGroup.consume(_) → method OrderGroup.consume() - added:
class BaseExpectation - added:
class ErrorGenerator - added:
class MethodStub < BaseExpectation - added:
class Mock - added:
class MockHandler - added:
class RegexpArgConstraint - added:
const MockHandler.DEFAULT_OPTIONS - added:
constructor BaseExpectation(_, _, _, _, _, _ = …, _ = …) - added:
constructor ErrorGenerator(_, _) - added:
constructor MethodStub(_, _, _, _, _) - added:
constructor Mock(_, _ = …) - added:
constructor MockHandler(_, _, _ = …) - added:
constructor RegexpArgConstraint(_) - added:
method BaseExpectation.and_raise(_ = …) - added:
method BaseExpectation.and_return(*) - added:
method BaseExpectation.and_throw(_) - added:
method BaseExpectation.and_yield(*) - added:
method BaseExpectation.expected_args() - added:
method BaseExpectation.invoke(_, _) - added:
method BaseExpectation.invoke_consecutive_return_block(_, _) - added:
method BaseExpectation.invoke_method_block(_) - added:
method BaseExpectation.invoke_return_block(_, _) - added:
method BaseExpectation.invoke_with_yield(_) - added:
method BaseExpectation.matches(_, _) - added:
method ErrorGenerator.opts() - added:
method ErrorGenerator.raise_block_failed_error(_, _) - added:
method ErrorGenerator.raise_expectation_error(_, _, _, *) - added:
method ErrorGenerator.raise_missing_block_error(_) - added:
method ErrorGenerator.raise_out_of_order_error(_) - added:
method ErrorGenerator.raise_unexpected_message_args_error(_, *) - added:
method ErrorGenerator.raise_unexpected_message_error(_, *) - added:
method ErrorGenerator.raise_wrong_arity_error(_, _) - added:
method MessageExpectation.matches_name_but_not_args(_, _) - added:
method MessageExpectation.negative_expectation_for?(_) - added:
method MockHandler.__add(_, _, _) - added:
method MockHandler.add_message_expectation(_, _, _ = …) - added:
method MockHandler.add_negative_message_expectation(_, _) - added:
method MockHandler.add_stub(_, _) - added:
method MockHandler.clear_expectations() - added:
method MockHandler.clear_proxied_methods() - added:
method MockHandler.clear_stubs() - added:
method MockHandler.define_expected_method(_) - added:
method MockHandler.define_instance_method(_, _) - added:
method MockHandler.find_almost_matching_expectation(_, *) - added:
method MockHandler.find_matching_expectation(_, *) - added:
method MockHandler.find_matching_method_stub(_) - added:
method MockHandler.has_negative_expectation?(_) - added:
method MockHandler.message_received(_, *) - added:
method MockHandler.metaclass_eval(_) - added:
method MockHandler.null_object?() - added:
method MockHandler.raise_unexpected_message_args_error(_, *) - added:
method MockHandler.raise_unexpected_message_error(_, *) - added:
method MockHandler.received_message?(_, *) - added:
method MockHandler.reset() - added:
method MockHandler.reset_proxied_methods() - added:
method MockHandler.verify() - added:
method MockHandler.verify_expectations() - added:
method MockMethods.__reset_mock() - added:
method MockMethods.__verify() - added:
method MockMethods.received_message?(_, *) - added:
method MockMethods.should_not_receive(_) - added:
method MockMethods.should_receive(_, _ = …) - added:
method MockMethods.stub!(_) - added:
method NegativeMessageExpectation.negative_expectation_for?(_) - added:
method OrderGroup.handle_order_constraint(_) - added:
method RegexpArgConstraint.matches?(_) - added:
module MockMethods - added:
property ArgumentExpectation.args: reader - added:
property BaseExpectation.sym: reader - added:
property ErrorGenerator.opts: writer
- added:
property SpecTask.drb: accessor
- removed:
method BacktraceTweaker.tweak_instance_exec_line(_, _) - removed:
method Specification.add_mock(_) - removed:
property ContextRunner.standalone: reader - changed:
constructor ContextRunner(_, _, _, _ = …) → constructor ContextRunner(_) - changed:
constructor Specification(_) → constructor Specification(_, _ = …) - changed:
method Specification.run(_ = …, _ = …, _ = …, _ = …, _ = …) → method Specification.run(_, _, _, _, _) - changed:
static method OptionParser.create_context_runner(_, _, _, _ = …) → method OptionParser.create_context_runner(_, _, _, _) - changed:
static method OptionParser.parse(_, _, _, _) → method OptionParser.parse(_, _, _, _) - added:
class CommandLine - added:
class ContextEvalModule < Module - added:
class DrbCommandLine - added:
class HeckleRunner - added:
class Heckler < Heckle::Base - added:
class SpecParser - added:
class SpecShouldRaiseHandler - added:
const QuietBacktraceTweaker.IGNORE_PATTERNS - added:
constructor HeckleRunner(_, _ = …) - added:
constructor Heckler(_, _, _) - added:
constructor OptionParser() - added:
constructor SpecShouldRaiseHandler(_, _) - added:
method BacktraceTweaker.clean_up_double_slashes(_) - added:
method HeckleRunner.heckle_module() - added:
method HeckleRunner.heckle_with(_) - added:
method Heckler.tests_pass?() - added:
method OptionParser.set_spec_from_line_number(_, _, _) - added:
method SpecParser.spec_name_for(_, _) - added:
method SpecShouldRaiseHandler.build_message(_ = …) - added:
method SpecShouldRaiseHandler.determine_error_class(_) - added:
method SpecShouldRaiseHandler.determine_error_message(_) - added:
method SpecShouldRaiseHandler.error_matches?(_) - added:
method SpecShouldRaiseHandler.handle(_) - added:
property Specification.command: reader - added:
protected method SpecParser.context_at_line(_, _) - added:
protected method SpecParser.find_above(_, _, _) - added:
protected method SpecParser.lines_above_reversed(_, _) - added:
protected method SpecParser.spec_at_line(_, _) - added:
static method CommandLine.run(_, _, _, _ = …, _ = …) - added:
static method DrbCommandLine.run(_, _, _, _ = …, _ = …)
- removed:
protected method InstanceMethods.context_superclass() - removed:
protected method InstanceMethods.setup_parts() - removed:
protected method InstanceMethods.teardown_parts() - changed:
method InstanceMethods.specify(_) → method InstanceMethods.specify(_, _ = …) - added:
method InstanceMethods.context_setup() - added:
method InstanceMethods.context_teardown() - added:
method InstanceMethods.inherit_context_eval_module_from(_) - added:
protected method InstanceMethods.context_setup_block() - added:
protected method InstanceMethods.context_teardown_block() - added:
protected method InstanceMethods.execution_context(_) - added:
protected method InstanceMethods.run_context_setup(_, _) - added:
protected method InstanceMethods.run_context_teardown(_, _)
- removed:
protected method ModuleMethods.context_modules() - removed:
protected method ModuleMethods.context_superclass() - removed:
protected method ModuleMethods.create_block_from_parts(_) - removed:
protected method ModuleMethods.derive_execution_context_class_from_context_superclass() - removed:
protected method ModuleMethods.execution_context_class() - removed:
protected method ModuleMethods.setup_block() - removed:
protected method ModuleMethods.setup_parts() - removed:
protected method ModuleMethods.specifications() - removed:
protected method ModuleMethods.teardown_block() - removed:
protected method ModuleMethods.teardown_parts() - changed:
method ModuleMethods.specify(_) → method ModuleMethods.specify(_, _ = …) - added:
method ModuleMethods.context_setup() - added:
method ModuleMethods.context_teardown()
- removed:
method InstanceMethods.stub(_, _ = …)
- removed:
const HtmlFormatter.HEADER - added:
method BaseTextFormatter.format_backtrace(_) - added:
method HtmlFormatter.extra_failure_content() - added:
method HtmlFormatter.move_progress() - added:
protected method BaseTextFormatter.backtrace_line(_) - added:
protected method BaseTextFormatter.colour(_, _) - added:
protected method BaseTextFormatter.green(_) - added:
protected method BaseTextFormatter.magenta(_) - added:
protected method BaseTextFormatter.red(_)
- removed:
method Failure.backtrace() - removed:
method Failure.message() - added:
method Failure.expectation_not_met?() - added:
property Failure.exception: reader
- added:
module ClassMethods - added:
protected property ClassMethods.current: accessor
- removed:
class SexpTransformer < SexpProcessor - removed:
class TranslationTestRunner - removed:
const SexpTransformer.TRANSLATIONS - removed:
constructor SexpTransformer() - removed:
constructor TranslationTestRunner(_) - removed:
method SexpTransformer.process_class(_) - removed:
method SexpTransformer.process_defn(_) - removed:
method SexpTransformer.process_fcall(_) - removed:
method SexpTransformer.process_iter(_) - removed:
method SexpTransformer.process_lasgn(_) - removed:
method SexpTransformer.process_lvar(_) - removed:
method TranslationTestRunner.passed?() - removed:
static method TranslationTestRunner.run(_, _)
- removed:
module Unit
- removed:
class TestCase - removed:
static method TestCase.to_rspec()