Skip to content

Commit 79b0aee

Browse files
author
Anna
committed
move simplecov back up
1 parent 09587b9 commit 79b0aee

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

test/cases/arel_helper.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def must_be_like other
1414

1515
# Useful for debugging Arel.
1616
# You can call it like arel_to_png(User.where(name: "foo").arel)
17-
def arel_to_png(arel)
17+
def arel_to_png(arel, file_name = "query")
1818
graph = GraphViz.parse_string(arel.to_dot)
19-
graph.output(:png => "query.png")
19+
graph.output(:png => "#{file_name}.png")
2020
end

test/cases/sqlserver_helper.rb

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
require 'bundler'
1414
Bundler.setup
1515
require 'simplecov'
16+
SimpleCov.start do
17+
add_filter "/test/"
18+
end
1619
require 'graphviz'
1720
require 'mocha/api'
1821
require 'active_support/dependencies'
@@ -25,10 +28,6 @@
2528
require 'models/topic'
2629
require 'cases/arel_helper'
2730

28-
SimpleCov.start do
29-
add_filter "/test/"
30-
end
31-
3231
GC.copy_on_write_friendly = true if GC.respond_to?(:copy_on_write_friendly?)
3332

3433
ActiveRecord::Migration.verbose = false

0 commit comments

Comments
 (0)