From b5fbdd898233d5ec855f329941fd0be9b8b46a2c Mon Sep 17 00:00:00 2001 From: Chris Schlaeger Date: Fri, 14 Nov 2014 17:17:22 +0100 Subject: Fix: Set proper forward/back links for newly added activities. --- spec/PostRunner_spec.rb | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'spec') diff --git a/spec/PostRunner_spec.rb b/spec/PostRunner_spec.rb index 20dc4f6..ac67c80 100644 --- a/spec/PostRunner_spec.rb +++ b/spec/PostRunner_spec.rb @@ -83,6 +83,13 @@ describe PostRunner::Main do list.index('FILE2.FIT').should be_a(Fixnum) rc = YAML::load_file(File.join(@db_dir, 'config.yml')) rc[:import_dir].should == '.' + + template = "" + html1 = File.read(File.join(@db_dir, 'html', 'FILE1.html')) + html1.include?(template % ['FILE2', 'forward']).should be_true + html2 = File.read(File.join(@db_dir, 'html', 'FILE2.html')) + html2.include?(template % ['FILE1', 'back']).should be_true end it 'should delete the first file' do -- cgit v1.2.3