Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 39 lines (25 sloc) 1.42 kb
0f4c7cf @gabebw Update NEWS file.
gabebw authored
1 HEAD
2
3 * `ensure_inclusion_of` now has an `in_array` parameter:
4 `ensure_inclusion_of(:attr).in_array(['foo', 'bar'])`. It cannot be used with
118e93e @gabebw Credit where credit is due.
gabebw authored
5 the `.in_range` option. (vpereira)
0f4c7cf @gabebw Update NEWS file.
gabebw authored
6
e1330dc @gabebw Update NEWS file.
gabebw authored
7 # v1.1.0
983dd54 @gabebw Add a NEWS file.
gabebw authored
8
9203275 @gabebw Formatting.
gabebw authored
9 * Added `only_integer` option to `validate_numericality_of`:
983dd54 @gabebw Add a NEWS file.
gabebw authored
10 `should validate_numericality_of(:attribute).only_integer`
9203275 @gabebw Formatting.
gabebw authored
11
12 * Added a `query_the_database` matcher:
983dd54 @gabebw Add a NEWS file.
gabebw authored
13
14 `it { should query_the_database(4.times).when_calling(:complicated_method) }`
15 `it { should query_the_database(4.times).or_less.when_calling(:complicated_method) }`
16 `it { should_not query_the_database.when_calling(:complicated_method) }`
17
18 * Database columns are now correctly checked for primality. E.G., this works
19 now: `it { should have_db_column(:id).with_options(:primary => true) }`
20
21 * The flash matcher can check specific flash keys using [], like so:
22 `it { should set_the_flash[:alert].to("Password doesn't match") }`
23
9203275 @gabebw Formatting.
gabebw authored
24 * The `have_sent_email` matcher can check `reply_to`:
983dd54 @gabebw Add a NEWS file.
gabebw authored
25 ` it { should have_sent_email.reply_to([user, other]) }`
26
9203275 @gabebw Formatting.
gabebw authored
27 * Added `validates_confirmation_of` matcher:
983dd54 @gabebw Add a NEWS file.
gabebw authored
28 `it { should validate_confirmation_of(:password) }`
29
9203275 @gabebw Formatting.
gabebw authored
30 * Added `serialize` matcher:
983dd54 @gabebw Add a NEWS file.
gabebw authored
31 `it { should serialize(:details).as(Hash).as_instance_of(Hash) }`
8fcc3d2 @gabebw Update NEWS file.
gabebw authored
32
33 * shoulda-matchers checks for all possible I18n keys, instead of just
34 e.g. `activerecord.errors.messages.blank`
c65e43a @gabebw Depend on activesupport >= 3.0.0.
gabebw authored
35
a76fd34 @gabebw Update NEWS file.
gabebw authored
36 * Add `accept_nested_attributes` matcher
37
a4edff0 @gabebw Proper Markdown.
gabebw authored
38 * Our very first dependency: ActiveSupport >= 3.0.0
Something went wrong with that request. Please try again.