diff --git a/spec/features/asciicast_spec.rb b/spec/features/asciicast_spec.rb index e4704ac..2ac487d 100644 --- a/spec/features/asciicast_spec.rb +++ b/spec/features/asciicast_spec.rb @@ -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$}) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index c63f69a..9c32ef9 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -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