Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Commit

Permalink
Add example on README
Browse files Browse the repository at this point in the history
  • Loading branch information
nisshiee committed Jan 26, 2016
1 parent 03ef982 commit 2090ad8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ RSpec.define MyModel do
it { is_expected.to be_invalid_on(:name).with('') }
it { is_expected.to be_valid_on(:name).with('my name') }

it { is_expected.to be_valid_on(:name).with('4cha').on_context(:create) }
it { is_expected.to be_invalid_on(:name).with('5char').on_context(:create) }
end
```
Expand Down

0 comments on commit 2090ad8

Please sign in to comment.