spec/spec_helper.rb in appbundler-0.5.0 vs spec/spec_helper.rb in appbundler-0.6.0
- old
+ new
@@ -1,4 +1,9 @@
-RSpec.configure do |c|
- c.filter_run :focus => true
- c.run_all_when_everything_filtered = true
-end
+def windows?
+ !!(RUBY_PLATFORM =~ /mswin|mingw|windows/)
+end
+
+RSpec.configure do |c|
+ c.filter_run :focus => true
+ c.run_all_when_everything_filtered = true
+ c.filter_run_excluding(not_supported_on_windows: true) if windows?
+end