Skip to content
This repository was archived by the owner on Mar 7, 2018. It is now read-only.

Commit c2fad09

Browse files
committed
Merge pull request #165 from cjolly/tests-tmp-history-file
use tmp dir for history file when running tests
2 parents 326c5b9 + 630269f commit c2fad09

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/app_test.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
require 'test_helper'
22
require File.expand_path('../../lib/dashing', __FILE__)
3+
Sinatra::Application.settings.history_file = File.join(Dir.tmpdir, 'history.yml')
34

45
class AppTest < Dashing::Test
56
def setup
@@ -141,4 +142,4 @@ def app
141142
def parse_data(string)
142143
JSON.parse string[/data: (.+)/, 1]
143144
end
144-
end
145+
end

0 commit comments

Comments
 (0)