- Better error handling for invalid described_class and method in contract specs.
- Fix: any_instance_of calls should not be recorded by VerifiedDouble.
- Fix:
VerifiedDouble.wrap(klass)
doesn't get cleared after the test where it is called. As a result, expectations ofklass
in other tests gets recorded by VerifiedDouble.
- Fix RspecDoubleValue#content_class: Method fails if the value is an double of an inheriting class.
- Implement partial mocks.
- Implement any_instance mocks with new RSpec syntax.
- Fix: use of is_s? in expect method causes tests to fail.
- Minor README updates.
-
[#27] Implement describe "contract" feature.
-
[#22] Add VerifiedDouble.any_instance_of(klass). Warning: only works with should_receive. Doesn't work with expect/allow syntax.
- [#26] Allow class to be passed to
of_instance
andof_class
.
- [#25] Fix: cannot mock is_a? on a VerifiedDouble instance double.
-
[#20] Fix: Cannot get stack frame of method signature recorded within a shared example.
-
[#21] Fix: Class double return value cannot be verified.
-
[#7] Pass: I should be able to use the RSpec's new expect syntax with VerifiedDouble.
-
[#7] Require verified_double/rspec_configuration in order to integrate verified_double with rspec.
-
[#18] Fix Scenario: stubbed doubles using hash syntax are no longer being recorded after 0.3.0.
-
[#19] Ensure: if
VerifiedDouble.of_instance(class_name, method_stubs={})
is used a argument or return value value of an expectation, then it should not interfere with the method signature recording of the expectation.
- [#17] Major refactor: extend RSpec doubles with VerifiedDouble recording functionality. No more need for RecordingDouble.
- [#4] Add stack frames and relish app link to output.
- [#12] RecordingDouble#class should be the class of the object being doubled.
- [#16] Fix handling of doubles passed as method signature values.
Known issues:
- Stack frames sometimes point to verified_double gem instead of where the mock was recorded.
-
Constantize should be a runtime dependency since constantize is used in VerifiedDouble::MethodSignatureValue.
-
[#10] Fix VerifiedDouble::MethodSignatureValue#modified_class. If the value is an rspec double, the modified_class should be the class represented by the double's name.
- [#3] Pass Scenario: Verifying mocks for accessors.
- [#3] Pass Scenario: Verifying mocks for readers
- [#5] Remove rspec-fire dependency.
- [#5] Use VerifiedDouble to mock and stub doubles in own tests.
- Passes #1: Customizing arguments and return values.
- Set rspec-fire to 1.1 for the meantime.
- Initial release. Passes "I want to be informed if the mocks I use are verified by contract tests" feature.