uh-wm/spec/spec_helper.rb
Thibault Jouan c9e6d1807b Fix X display handling in rspec test suite
* Hide any available X display from test suite context;
* Ensure the manager never connect or block.
2015-04-10 10:16:30 +00:00

19 lines
424 B
Ruby

require 'uh/wm'
RSpec.configure do |config|
config.expect_with :rspec do |expectations|
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
end
config.mock_with :rspec do |mocks|
mocks.verify_partial_doubles = true
end
config.disable_monkey_patching!
config.before :all do
# Ensure current X display is not available from rspec test suite.
ENV.delete 'DISPLAY'
end
end