Exclude specs that need terminal binary compiled when it's missing

footer-fixes
Marcin Kulik 10 years ago
parent 59f73aad88
commit 22922a4135

@ -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 }

@ -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] }

@ -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

Loading…
Cancel
Save