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.
asciinema.org/spec/features/png_spec.rb

14 lines
271 B
Ruby

require 'rails_helper'
feature "asciicast-as-png", needs_phantomjs_2_bin: true do
let(:asciicast) { create(:asciicast) }
scenario "Requesting PNG" do
visit asciicast_path(asciicast, format: :png)
expect(current_path).to match(%r{/a/\d+\.png$})
end
end