docbrown/spec/requests/buffered_articles_spec.rb
Abraham Williams 9cb40e546b Enables Rails cops (#2186)
* Enable Rails cops

* Fix Rails/DynamicFindBy

* Fix Rails/HttpStatus

* Fix Rails/Blank

* Fix Rails/RequestReferer

* Fix Rails/ActiveRecordAliases

* Fix Rails/FindBy

* Fix Rails/Presence

* Fix Rails/Delegate

* Fix Rails/Validation

* Fix Rails/PluralizationGrammar

* Fix Rails/Present

* Fix Rails/Output

* Fix Rails/Blank

* Fix Rails/FilePath

* Fix Rails/InverseOf

* Fix Rails/LexicallyScopedActionFilter

* Add Rails/OutputSafety to TODO

* Add Rails/HasManyOrHasOneDependent to TODO

* Add Rails/SkipsModelValidations to TODO
2019-03-25 09:25:55 -04:00

19 lines
569 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