19 lines
555 B
Ruby
19 lines
555 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(200)
|
|
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("https://dev.to/")
|
|
end
|
|
end
|
|
end
|