diff options
author | Chris Schlaeger <chris@linux.com> | 2014-11-14 17:17:22 +0100 |
---|---|---|
committer | Chris Schlaeger <chris@linux.com> | 2014-11-14 17:17:22 +0100 |
commit | b5fbdd898233d5ec855f329941fd0be9b8b46a2c (patch) | |
tree | daaf45e309ed1e551f3695ec0a168f6b2738d301 /spec/PostRunner_spec.rb | |
parent | a92f1d3eb8b8a890df2e2f2846d5beedf78b5955 (diff) | |
download | postrunner-b5fbdd898233d5ec855f329941fd0be9b8b46a2c.zip |
Fix: Set proper forward/back links for newly added activities.
Diffstat (limited to 'spec/PostRunner_spec.rb')
-rw-r--r-- | spec/PostRunner_spec.rb | 7 |
1 files changed, 7 insertions, 0 deletions
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 = "<a href=\"%s.html\"><img src=\"icons/%s.png\" " + + "class=\"active_button\">" + 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 |