-
- [x] 現時点で実装されている機能のテストを書く
- [x] 以下のgemを導入する
- [shoulda-matchers](https://github.com/thoughtbot/shoulda-matchers)
- [factory_bot_rails](https://github.com/thoughtbot/factory_bot_rails)
- [rs…
-
Add specs - model, request, routes and feature specs.
-
3.0.0 :003 > FactoryBot.build(:restaurant)
Traceback (most recent call last):
KeyError (Factory not registered: "restaurant")
-
Hi,
Great work on the gem!
I'm trying to use the gem's validators in my own rspec suite, so that I'm able to say something like:
``` ruby
it { is_expected.to allow_file_size(1.5.megabyes, :image)…
-
Upgrading from Rails 5.1.5 to 5.2.0 results in
`ArgumentError: wrong number of arguments (given 1, expected 0)`
for
`callback(:after_commit_callback).after(:commit).on(:create)`
-
With the following options (in 2.0.1) :
```
jeweler --rspec --shoulda --user-name dgmora --user-email david@somewhere.com --github-username dgmora --git-remote heythere --create-repo --yard heythere…
-
`validate_inclusion_of` accepts a `message` option, inside which you are able to specify the value that was passed to the field for validation. It looks like:
```
with_message('the value: %{value} i…
-
-
## Summary
- the `shoulda-matchers` [gem](https://github.com/thoughtbot/shoulda-matchers) appears not to be used
- it _should_ be removed
## Acceptance Criteria
- [ ] `shoulda-matchers` gem…
-
I'm trying to improve some of the model tests by using [shoulda-matchers](https://github.com/thoughtbot/shoulda-matchers) and I came across something interesting about slug generation.
I tried changi…