* Run Inspecting 1050 files ....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................C..................................................................................................................................................................................................................................................................................................... Offenses: spec/models/article_spec.rb:195:7: C: RSpec/NestedGroups: Maximum example group nesting exceeded [4/3]. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/NestedGroups) context "when description is empty" do ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1050 files inspected, 1 offense detected to fix autofixable errors * Refactor to correct test it was braking the rule RSpec/NestedGroups: Maximum example group nesting exceeded [4/3]. (http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/NestedGroups) * Run `rubocop --auto-gen-config` to regenrate `.rubocop_todo.yml`
21 lines
571 B
Ruby
21 lines
571 B
Ruby
require "rails_helper"
|
|
|
|
RSpec.describe "BufferedArticles", type: :request do
|
|
describe "GET /buffered_articles" do
|
|
it "works! (now write some real specs)" do
|
|
get "/buffered_articles"
|
|
expect(response).to have_http_status(:ok)
|
|
end
|
|
|
|
it "responds with json" do
|
|
get "/buffered_articles"
|
|
expect(response.content_type).to eq("application/json")
|
|
end
|
|
|
|
it "responds with at least one url" do
|
|
create(:article)
|
|
get "/buffered_articles"
|
|
expect(response.body).to include(ApplicationConfig["APP_DOMAIN"])
|
|
end
|
|
end
|
|
end
|