Skip to content

HTTPS clone URL

Subversion checkout URL

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