Don't run screenshot test on environments without phantomjs 2.0+

private-asciicasts
Marcin Kulik 9 years ago
parent 5121bf75f5
commit 78f0f9248c

@ -19,7 +19,7 @@ feature "Asciicast page", :js => true do
[ChunkyPNG::Color.r(color), ChunkyPNG::Color.g(color), ChunkyPNG::Color.b(color)]
end
scenario 'Requesting PNG' do
scenario 'Requesting PNG', needs_phantomjs_2_bin: true do
visit asciicast_path(asciicast, format: :png)
expect(current_path).to match(%r{/uploads/test/asciicast/image/\d+/\w+\.png$})

@ -26,6 +26,7 @@ RSpec.configure do |config|
config.run_all_when_everything_filtered = true
config.filter_run_excluding :unstable if ENV['RSPEC_EXCLUDE_UNSTABLE']
config.filter_run_excluding :needs_terminal_bin unless File.executable?("src/terminal")
config.filter_run_excluding :needs_phantomjs_2_bin unless `phantomjs --version`[0] == '2'
# Many RSpec users commonly either run the entire suite or an individual
# file, and it's useful to allow more verbose output when running an

Loading…
Cancel
Save