From 03484e8eb8f4b74806b2043af6d83a230b5ceb97 Mon Sep 17 00:00:00 2001 From: Chris Schlaeger Date: Tue, 19 Aug 2014 22:17:38 +0200 Subject: Adding support for a runtime config file. --- spec/PostRunner_spec.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'spec') diff --git a/spec/PostRunner_spec.rb b/spec/PostRunner_spec.rb index d3ab129..bb2d600 100644 --- a/spec/PostRunner_spec.rb +++ b/spec/PostRunner_spec.rb @@ -117,6 +117,8 @@ describe PostRunner::Main do it 'should import a FIT file' do postrunner(%w( import FILE1.FIT )) + rc = YAML::load_file(File.join(@db_dir, 'config.yml')) + rc[:import_dir].should == '.' end it 'should check the imported file' do @@ -131,8 +133,8 @@ describe PostRunner::Main do postrunner(%w( list )).index('FILE1.FIT').should be_a(Fixnum) end - it 'should import another FIT file' do - postrunner(%w( import FILE2.FIT )) + it 'should import the other FIT file' do + postrunner(%w( import )) list = postrunner(%w( list )) list.index('FILE1.FIT').should be_a(Fixnum) list.index('FILE2.FIT').should be_a(Fixnum) -- cgit v1.2.3