Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 70 lines (45 sloc) 2.638 kB
481631c @joshuaclayton Bump version to 1.3.0
joshuaclayton authored
1 # v1.3.0
5788835 @gabebw Update NEWS file.
gabebw authored
2
63dd9f5 @fabiokr Merge pull request #140
fabiokr authored
3 * `validate_format_of` will accept `allow_blank(bool)` and `allow_nil(bool)`
4
5788835 @gabebw Update NEWS file.
gabebw authored
5 * Prefer Test::Unit to Minitest when loading integrations so that RubyMine is
6 happy (#88).
7
b618275 @drapergeek create an entry for validates_uniquessness_of if one does not exist
drapergeek authored
8 * `validates_uniqueness_of` will now create a record if one does not exist.
9 Previously, users were required to create a record in the database before
10 using this matcher.
11
c8fa5c9 @gabebw Update NEWS file.
gabebw authored
12 * Fix an edge case when where the matchers weren't loaded into Test::Unit when
13 mixing RSpec and Test::Unit tests and also loading both the 'rspec-rails' gem
14 and 'shoulda-matchers' gem from the same Gemfile group, namely [:test,
15 :development].
16
4ce7729 @gabebw Update NEWS file.
gabebw authored
17 * `controller.should_not render_partial` now correctly matches `render partial: "partial"`.
18
cdfd7f3 @gabebw Prepare for v1.2.0.
gabebw authored
19 # v1.2.0
0f4c7cf @gabebw Update NEWS file.
gabebw authored
20
21 * `ensure_inclusion_of` now has an `in_array` parameter:
22 `ensure_inclusion_of(:attr).in_array(['foo', 'bar'])`. It cannot be used with
118e93e @gabebw Credit where credit is due.
gabebw authored
23 the `.in_range` option. (vpereira)
0f4c7cf @gabebw Update NEWS file.
gabebw authored
24
8995f60 @drapergeek Add #allow_blank and #allow_nil options to #ensure_inclusion_of .
drapergeek authored
25 * `ensure_in_inclusion_of` with `in_array` will accept `allow_blank(bool)` and `allow_nil(false)`
26
63b679c @gabebw Update NEWS file.
gabebw authored
27 * Test against Rails 3.2.
28
b68d711 @gabebw Update NEWS.
gabebw authored
29 * Fix `ensure_length_of` to use all possible I18n error messages.
30
a718c46 @gabebw WIP: start to move to using an options hash.
gabebw authored
31 * `have_db_index.unique(nil)` used to function exactly the same as
32 `have_db_index` with no unique option. It now functions the same as
33 `have_db_index.unique(false)`.
34
cdfd7f3 @gabebw Prepare for v1.2.0.
gabebw authored
35 * In 1.1.0, `have_sent_email` checked all emails to ensure they matched. It now
36 checks that only one email matches, which restores 1.0.0 behavior.
37
e1330dc @gabebw Update NEWS file.
gabebw authored
38 # v1.1.0
983dd54 @gabebw Add a NEWS file.
gabebw authored
39
9203275 @gabebw Formatting.
gabebw authored
40 * Added `only_integer` option to `validate_numericality_of`:
983dd54 @gabebw Add a NEWS file.
gabebw authored
41 `should validate_numericality_of(:attribute).only_integer`
9203275 @gabebw Formatting.
gabebw authored
42
43 * Added a `query_the_database` matcher:
983dd54 @gabebw Add a NEWS file.
gabebw authored
44
45 `it { should query_the_database(4.times).when_calling(:complicated_method) }`
46 `it { should query_the_database(4.times).or_less.when_calling(:complicated_method) }`
47 `it { should_not query_the_database.when_calling(:complicated_method) }`
48
49 * Database columns are now correctly checked for primality. E.G., this works
50 now: `it { should have_db_column(:id).with_options(:primary => true) }`
51
52 * The flash matcher can check specific flash keys using [], like so:
53 `it { should set_the_flash[:alert].to("Password doesn't match") }`
54
9203275 @gabebw Formatting.
gabebw authored
55 * The `have_sent_email` matcher can check `reply_to`:
983dd54 @gabebw Add a NEWS file.
gabebw authored
56 ` it { should have_sent_email.reply_to([user, other]) }`
57
9203275 @gabebw Formatting.
gabebw authored
58 * Added `validates_confirmation_of` matcher:
983dd54 @gabebw Add a NEWS file.
gabebw authored
59 `it { should validate_confirmation_of(:password) }`
60
9203275 @gabebw Formatting.
gabebw authored
61 * Added `serialize` matcher:
983dd54 @gabebw Add a NEWS file.
gabebw authored
62 `it { should serialize(:details).as(Hash).as_instance_of(Hash) }`
8fcc3d2 @gabebw Update NEWS file.
gabebw authored
63
64 * shoulda-matchers checks for all possible I18n keys, instead of just
65 e.g. `activerecord.errors.messages.blank`
c65e43a @gabebw Depend on activesupport >= 3.0.0.
gabebw authored
66
a76fd34 @gabebw Update NEWS file.
gabebw authored
67 * Add `accept_nested_attributes` matcher
68
a4edff0 @gabebw Proper Markdown.
gabebw authored
69 * Our very first dependency: ActiveSupport >= 3.0.0
Something went wrong with that request. Please try again.