summaryrefslogtreecommitdiff
path: root/test/app_test.rb
diff options
context:
space:
mode:
authorChad Jolly <cjolly@lawgical.com>2013-07-14 22:03:11 -0600
committerChad Jolly <cjolly@lawgical.com>2013-07-14 22:03:11 -0600
commit630269f1e695987002317c34cb4d6c703d5c1c40 (patch)
tree53b2317e837059e943f9aa6fb72d8f2fe8887a4e /test/app_test.rb
parent326c5b9c9956fd832b850d60982a677660680a7c (diff)
use tmp dir for history file when running tests
Diffstat (limited to 'test/app_test.rb')
-rw-r--r--test/app_test.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/app_test.rb b/test/app_test.rb
index 8b1be19..0546814 100644
--- a/test/app_test.rb
+++ b/test/app_test.rb
@@ -1,5 +1,6 @@
require 'test_helper'
require File.expand_path('../../lib/dashing', __FILE__)
+Sinatra::Application.settings.history_file = File.join(Dir.tmpdir, 'history.yml')
class AppTest < Dashing::Test
def setup
@@ -141,4 +142,4 @@ class AppTest < Dashing::Test
def parse_data(string)
JSON.parse string[/data: (.+)/, 1]
end
-end \ No newline at end of file
+end