uh-wm/spec/spec_helper.rb
2015-04-13 01:29:04 +00:00

27 lines
541 B
Ruby

require 'headless'
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
config.around :example, :xvfb do |example|
Headless.ly do
example.run
end
end
end