-
It would be nice to be able to write a unit test that will verify you expect a certain property on a resource to have it's value redacted in the compiled catalog. Below is currently what i'm doing. …
-
## Expected Behavior
Should be able to handle Arrays.
## Actual Behavior
Does not handle arrays.
## Steps to Reproduce the Problem
1. Create a JSON Serialized object that has the 'data' a…
-
### Subject of the issue
It appears that if And compounds are sequential then tests are running for a long time. Eg.:
```ruby
expect('qwe').
to include('asd').
and(include('asd')).
…
Lukom updated
2 years ago
-
Yeah, I know it's listed in gotchas already. Though it's a real inconvenience: it makes reusing RSpec matchers difficult.
There are some useful stock RSpec::Rails matchers which rely on `response` ob…
-
CanCan Matchers do not conform with the new RSpec (currently 3.0.0.rc1, approaching official release).
-
- [x] 現時点で実装されている機能のテストを書く
- [x] 以下のgemを導入する
- [shoulda-matchers](https://github.com/thoughtbot/shoulda-matchers)
- [factory_bot_rails](https://github.com/thoughtbot/factory_bot_rails)
- [rs…
-
Am I missing something obvious here?
I've added `gem 'rspec-hollerback-mocks'` to my Gemfile test group,
and added `require 'rspec/hollerback/mocks'` to my `spec_helper.rb`.
Writing an expectat…
-
Can you please add matchers?
I wanna add rspec tests but can't.
Thanks in advance!
-
The various dynamic matchers (`contain_class`, etc.) can't be composed or easily used in custom matchers. The problem is that rspec's `values_match?` method uses `expected === actual` to test for a ma…
-
### 結論
RSpecモデルテストを実行すると、
```
ActiveRecord::StatementInvalid:
Mysql2::Error: This connection is in use by: #
```
というエラーになり、詰まっております。
### 実装の目的
モデルテストを実行するため。
### 手順
私の行った手順は以下です。
(1)rspec-rai…