spec/requests/api/v1/mrss_profiles_spec.rb

Summary

Maintainability
A
0 mins
Test Coverage

Prefer response.parsed_body to JSON.parse(response.body).
Open

        expect(JSON.parse(response.body).first).to match(hash_including('id' => 'http://some.mrss.url/feed2.xml'))

Prefer response.parsed_body to JSON.parse(response.body).
Open

        expect(JSON.parse(response.body).last).to match(hash_including('id' => 'http://some.mrss.url/feed1.xml'))

Prefer response.parsed_body to JSON.parse(response.body).
Open

        expect(JSON.parse(response.body)).to match(hash_including('id' => 'http://some.mrss.url/feed2.xml', 'name' => an_instance_of(String)))

Prefer response.parsed_body to JSON.parse(response.body).
Open

        expect(JSON.parse(response.body)).to match(hash_including('id' => 'http://some.mrss.url/already.xml',

Avoid instance variables – use let, a method call, or a local variable (if possible).
Open

                                                                  'name' => @mrss_profile.name))

There are no issues that match your filters.

Category
Status