You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
427 B
Ruby
18 lines
427 B
Ruby
require 'rails_helper'
|
|
|
|
describe "oEmbed provider" do
|
|
|
|
let(:asciicast) { create(:asciicast) }
|
|
|
|
it "responds with status 200 for JSON" do
|
|
get "/oembed?url=http://localhost:3000/a/#{asciicast.id}&format=json"
|
|
expect(response.status).to eq(200)
|
|
end
|
|
|
|
it "responds with status 200 for XML" do
|
|
get "/oembed?url=http://localhost:3000/a/#{asciicast.id}&format=xml"
|
|
expect(response.status).to eq(200)
|
|
end
|
|
|
|
end
|