diff --git a/spec/models/terminal_spec.rb b/spec/models/terminal_spec.rb index ab91503..2301bb4 100644 --- a/spec/models/terminal_spec.rb +++ b/spec/models/terminal_spec.rb @@ -2,7 +2,7 @@ require 'rails_helper' -describe Terminal do +describe Terminal, needs_terminal_bin: true do let(:terminal) { Terminal.new(6, 3) } let(:first_line_text) { subject.as_json.first.map(&:first).join.strip } diff --git a/spec/services/asciicast_frames_file_updater_spec.rb b/spec/services/asciicast_frames_file_updater_spec.rb index 28996d7..d918797 100644 --- a/spec/services/asciicast_frames_file_updater_spec.rb +++ b/spec/services/asciicast_frames_file_updater_spec.rb @@ -5,7 +5,7 @@ describe AsciicastFramesFileUpdater do let(:updater) { described_class.new(file_writer) } let(:file_writer) { double('file_writer') } - describe '#update' do + describe '#update', needs_terminal_bin: true do let(:asciicast) { create(:asciicast) } let(:film) { double('film', :frames => frames) } let(:frames) { [1, 2] } diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index afe487d..c63f69a 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -25,6 +25,7 @@ RSpec.configure do |config| config.filter_run :focus 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") # 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