From 630269f1e695987002317c34cb4d6c703d5c1c40 Mon Sep 17 00:00:00 2001 From: Chad Jolly Date: Sun, 14 Jul 2013 22:03:11 -0600 Subject: use tmp dir for history file when running tests --- test/app_test.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test') 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 -- cgit v1.2.3