diff options
author | David Underwood <davefp@gmail.com> | 2013-07-16 06:22:40 -0700 |
---|---|---|
committer | David Underwood <davefp@gmail.com> | 2013-07-16 06:22:40 -0700 |
commit | c2fad09e3b3845f80fb6e60f7ceb7e64c60dd633 (patch) | |
tree | 53b2317e837059e943f9aa6fb72d8f2fe8887a4e /test/app_test.rb | |
parent | 326c5b9c9956fd832b850d60982a677660680a7c (diff) | |
parent | 630269f1e695987002317c34cb4d6c703d5c1c40 (diff) |
Merge pull request #165 from cjolly/tests-tmp-history-file
use tmp dir for history file when running tests
Diffstat (limited to 'test/app_test.rb')
-rw-r--r-- | test/app_test.rb | 3 |
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 |