spec/requests/api/v1/mrss_profiles_spec.rb
Prefer response.parsed_body
to JSON.parse(response.body)
. Open
Open
expect(JSON.parse(response.body).first).to match(hash_including('id' => 'http://some.mrss.url/feed2.xml'))
- Exclude checks
Prefer response.parsed_body
to JSON.parse(response.body)
. Open
Open
expect(JSON.parse(response.body).last).to match(hash_including('id' => 'http://some.mrss.url/feed1.xml'))
- Exclude checks
Prefer response.parsed_body
to JSON.parse(response.body)
. Open
Open
expect(JSON.parse(response.body)).to match(hash_including('id' => 'http://some.mrss.url/feed2.xml', 'name' => an_instance_of(String)))
- Exclude checks
Prefer response.parsed_body
to JSON.parse(response.body)
. Open
Open
expect(JSON.parse(response.body)).to match(hash_including('id' => 'http://some.mrss.url/already.xml',
- Exclude checks
Avoid instance variables – use let, a method call, or a local variable (if possible). Open
Open
'name' => @mrss_profile.name))
- Exclude checks