diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 59a3eee..07435cf 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,3 +1,5 @@ +require 'headless' + require 'uh/wm' RSpec.configure do |config| @@ -15,4 +17,10 @@ RSpec.configure do |config| # 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