Permalink
Browse files

Better configuration for simplecov, closes #19.

  • Loading branch information...
1 parent 048af98 commit 1da447efdeda6cdc651084652f52e4a8fef76a1d @lucassus committed Nov 19, 2012
Showing with 3 additions and 3 deletions.
  1. +2 −2 .simplecov
  2. +1 −1 spec/support/mongod.rb
View
@@ -1,5 +1,5 @@
SimpleCov.start do
- add_group "Application", "lib"
+ add_filter "spec"
end
-SimpleCov.coverage_dir('reports/coverage')
+SimpleCov.coverage_dir("reports/coverage")
View
@@ -54,7 +54,7 @@ def find_available_port
# Starts a core MongoDB daemon on the given port.
def self.start(port)
command = "mongod --port #{port} --dbpath #{MONGODB_DBPATH} --nojournal"
- log_file = File.open(File.expand_path("log/test_mongod.log"), "w+")
+ log_file = File.open(File.expand_path("log/test_mongod.log"), "w")
Process.spawn(command, out: log_file)
end

0 comments on commit 1da447e

Please sign in to comment.