diff options
author | Chris Schlaeger <chris@linux.com> | 2014-08-19 22:17:38 +0200 |
---|---|---|
committer | Chris Schlaeger <chris@linux.com> | 2014-08-19 22:17:38 +0200 |
commit | 03484e8eb8f4b74806b2043af6d83a230b5ceb97 (patch) | |
tree | 21ed87c6a144ed103194db8f03a22703a6b1c1bf /spec | |
parent | 420d3bc52169969196f9c6d9eda58f40b9e47893 (diff) | |
download | postrunner-03484e8eb8f4b74806b2043af6d83a230b5ceb97.zip |
Adding support for a runtime config file.
Diffstat (limited to 'spec')
-rw-r--r-- | spec/PostRunner_spec.rb | 6 |
1 files changed, 4 insertions, 2 deletions
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) |