2015-03-30 15:49:08 +00:00
|
|
|
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)
|
|
|
|
|
2016-04-10 12:06:48 +00:00
|
|
|
expect(current_path).to match(%r{/a/\d+\.png$})
|
2015-03-30 15:49:08 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|