-
We already have test_helper with some helper methods but it would be great to also add various RSpec matchers so that matching on Sentry events is easy and concise.
Rough API sketch:
```ruby
expect(…
-
Improve diff when using [match RSpec matcher](https://rspec.info/documentation/3.13/rspec-expectations/RSpec/Matchers.html#match-instance_method)
Given the following test
```ruby
it "is" do…
-
- [x] https://github.com/thoughtbot/shoulda-matchers
- [x] https://github.com/rspec/rspec-mocks
- [x] https://github.com/rspec/rspec-rails
- [x] https://github.com/wspurgin/rspec-sidekiq
- [x] htt…
-
Trying to assert some method does not enqueue either of two sidekiq jobs, and I get this message from rspec:
~~~
1) MyClass does not enqueue either job
Failure/Error:
expect { my_…
-
We have quite a lot of specs that require checking for the JSON output of an API.
[This RSpec helpers](https://relishapp.com/waterlink/rspec-json-expectations/docs/json-expectations) should help us…
-
This is a basic example for `Failure` and `Success` monads.
``` Ruby
RSpec::Matchers.define :be_success do |expected|
if expected.nil?
match { |actual| actual.success? }
failure_message { …
-
-
-
Over time, I've run into several situations where I'll declare a parameter, not set a value for it, and end up with a 500 error as my app attempts to parse `#` or another built-in matcher as JSON.
Fo…
-
```ruby
require 'rails_helper'
RSpec.describe Projects::NewProjectLinkComponent, type: :component do
let(:company) { create(:company) }
let(:kwargs) { { company: company } }
it { is_e…