Changelog History
Page 4
-
v2.2.0 Changes
June 11, 2013 -
v2.1.0 Changes
May 05, 2013Add missing
failure_message_for_should_not
implementations tovalidate_numericality_of
and its submatchers.๐ Support validation contexts for testing validations
on: :create
and when using custom contexts likemodel.valid?(:my_context)
.๐ Fix a bug in validations with autosaved models.
Fix maximum value detection for the
ensure_inclusion_of
andensure_exclusion_of
matchers.Add
:odd
and:even
options to thevalidate_numericality_of
matcher.โ Add
:touch
option to AssociationMatcher.๐ Ruby 2.0.0 is now officially supported.
๐ Fix the issue where using
%{attribute}
or%{model}
in I18n translations raised exceptions.Support datetime columns in
validate_uniqueness_of.scoped_to
.Add
allow_nil
option to thevalidate_uniqueness_of
matcher.
-
v2.0.0 Changes
April 05, 2013- โ Remove the following matchers:
assign_to
respond_with_content_type
query_the_database
validate_format_of
have_sent_email
permit
(strong parameters matcher)delegate_method
๐ For more information about 2.0 changes, see: https://robots.thoughtbot.com/post/47031676783/shoulda-matchers-2-0.
- โ Remove the following matchers:
-
v1.5.6 Changes
March 29, 2013- โช Revert previous change in AllowValueMatcher that added a check for a properly-set attribute.
-
v1.5.5 Changes
March 28, 2013๐ AllowValueMatcher checks that the right value is used for attempts at setting the attribute with it. Please note that previously-passing tests might now fail. It is likely that it's not a bug, but please make sure that the code you're testing is written properly before submitting an issue.
Use DisallowValueMatcher for
disallows_value_of
method.Assert
class_name
value on real class name for AssociationMatcher.Correct the variable used for
validate_confirmation_of
matcher description.
-
v1.5.4 Changes
March 21, 2013- ๐ Properly-released version of 1.5.3.
-
v1.5.3 Changes
March 21, 2013- Alleviate the need to add
rspec
gem to your app.
- Alleviate the need to add
-
v1.5.2 Changes
March 19, 2013???
-
v1.5.1 Changes
March 19, 2013โฌ๏ธ Bump version dependency of Bourne to allow for Mocha upgrade.
โ Should fix incompatibility with MiniTest.
-
v1.5.0 Changes
March 15, 2013๐ Deprecate the following matchers:
assign_to
respond_with_content_type
query_the_database
validate_format_of
have_sent_email
permit
(strong parameters matcher)delegate_method
๐ง Use RSpec's native
configure.include
syntax for including matchers into RSpec (#204).โ Do not force MiniTest loading when test-unit is available (this was fixed before 1.3.0 then reverted in 1.3.0).