Skip to content
Browse files

! not

  • Loading branch information...
1 parent 5b83282 commit ae241a907f6a3e00b748af59c159e3023c8c69c6 @dchelimsky dchelimsky committed Feb 6, 2010
Showing with 3 additions and 3 deletions.
  1. +3 −3 spec/spec_helper.rb
View
6 spec/spec_helper.rb
@@ -56,13 +56,13 @@ def use_formatter(new_formatter)
Rspec::Core.configuration.instance_variable_set(:@formatter, original_formatter)
end
-def not_in_editor?
- !(ENV.has_key?('TM_MODE') || ENV.has_key?('EMACS') || ENV.has_key?('VIM'))
+def in_editor?
+ ENV.has_key?('TM_MODE') || ENV.has_key?('EMACS') || ENV.has_key?('VIM')
end
Rspec::Core.configure do |c|
c.mock_framework = :rspec
c.filter_run :focused => true
c.run_all_when_everything_filtered = true
- c.color_enabled = not_in_editor?
+ c.color_enabled = !in_editor?
end

0 comments on commit ae241a9

Please sign in to comment.
Something went wrong with that request. Please try again.