summaryrefslogtreecommitdiff
path: root/spec/PostRunner_spec.rb
diff options
context:
space:
mode:
authorChris Schlaeger <chris@linux.com>2014-08-19 22:17:38 +0200
committerChris Schlaeger <chris@linux.com>2014-08-19 22:17:38 +0200
commit03484e8eb8f4b74806b2043af6d83a230b5ceb97 (patch)
tree21ed87c6a144ed103194db8f03a22703a6b1c1bf /spec/PostRunner_spec.rb
parent420d3bc52169969196f9c6d9eda58f40b9e47893 (diff)
downloadpostrunner-03484e8eb8f4b74806b2043af6d83a230b5ceb97.zip
Adding support for a runtime config file.
Diffstat (limited to 'spec/PostRunner_spec.rb')
-rw-r--r--spec/PostRunner_spec.rb6
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)