You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

spec_helper.rb 591 B

2 years ago
12345678910111213141516171819202122232425262728293031
  1. # frozen_string_literal: true
  2. ENV['CUCUMBER_COLORS'] = nil
  3. $LOAD_PATH.unshift(File.dirname(__FILE__))
  4. # For Travis....
  5. require 'cucumber/encoding'
  6. require 'simplecov_setup'
  7. require 'pry'
  8. require 'cucumber'
  9. RSpec.configure do |c|
  10. c.before do
  11. ::Cucumber::Term::ANSIColor.coloring = true
  12. end
  13. end
  14. module RSpec
  15. module WorkInProgress
  16. def pending_under(platforms, reason, &block)
  17. if [platforms].flatten.map(&:to_s).include? RUBY_PLATFORM
  18. pending "pending under #{platforms.inspect} because: #{reason}", &block
  19. else
  20. yield
  21. end
  22. end
  23. end
  24. end

No Description

Contributors (1)