asciinema.org/spec/features/png_spec.rb

14 lines
271 B
Ruby
Raw Normal View History

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