-
As I interpret the documentation, it seems like it should be possible to use shoulda-matchers without rails, with `ActiveModel` and not `ActiveRecord`?
I'm trying to use `validates_presence_of` in …
-
I am using shoulda-matchers 3.1.2 and shoulda-context 1.2.2 along with Rails 5.2 and Minitest 5.11.3 . Ruby version is 2.5.0 . The following is the code corresponding to the controller test for the po…
-
Consider this example of a deprecation warning:
https://github.com/thoughtbot/shoulda-matchers/blob/94b28e4ef4cc001b1c0b4386143b8c05ac163550/lib/shoulda/matchers/warn.rb#L20-L25
A test like this w…
-
The following syntax
```
describe Post do
context 'validations' do
subject { FactoryGirl.build(:post) }
it do
should validate_uniqueness_of(:slug).
scoped_to(:user_id).
…
-
I'm planning to port [shoulda matchers](https://github.com/thoughtbot/shoulda-matchers) to reform. Should it to be integrated into `reform` or you want a separate gem like `reform-matchers`?
-
- Test the validator class itself
- Write a matcher for the custom validator that follows the shoulda-matchers `validates_*_of`` style
-
I was seeing that some of the rspec-mongoid matchers are similar to the ones from shoulda matchers, but some have minor differences, like using `ensure` instead of `validate`. Shouldn't they be simila…
-
```sh
rails new YOUR_APP_NAME --api --database=postgresql --skip-test --skip-action-cable --skip-action-mailer --skip-javascript
rails db:create
```
> Update Gemfile
```rb
# ...
group :de…
-
Saving this link for future references: https://github.com/thoughtbot/shoulda-matchers/pull/1397
-
### Description
We can't expect for the presence of an option with value `false` if it's against a modified value of a Rails default.
### Reproduction Steps
By default, the some options such …