diff options
Diffstat (limited to 'spec/mspec')
-rw-r--r-- | spec/mspec/lib/mspec/guards/feature.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/mspec/lib/mspec/guards/feature.rb b/spec/mspec/lib/mspec/guards/feature.rb index 30984e0cc5..4f1df1cabe 100644 --- a/spec/mspec/lib/mspec/guards/feature.rb +++ b/spec/mspec/lib/mspec/guards/feature.rb @@ -39,3 +39,9 @@ end def with_feature(*features, &block) FeatureGuard.new(*features).run_if(:with_feature, &block) end + +MSpecEnv.class_eval do + def without_feature(*features, &block) + FeatureGuard.new(*features).run_unless(:without_feature, &block) + end +end |