diff --git a/test/test_plasma-webpages.rb b/test/test_plasma-webpages.rb index 5dc47ea..bb2bc40 100644 --- a/test/test_plasma-webpages.rb +++ b/test/test_plasma-webpages.rb @@ -1,61 +1,61 @@ # Copyright (C) 2016 Jonathan Riddell # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as # published by the Free Software Foundation; either version 2 of # the License or (at your option) version 3 or any later version # accepted by the membership of KDE e.V. (or its successor approved # by the membership of KDE e.V.), which shall act as a proxy # defined in Section 14 of version 3 of the license. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . require 'fileutils' require_relative 'lib/testme' require_relative '../plasma/lib/plasma_info_template' require_relative '../plasma/lib/plasma_announce_template' class TestPlasmaWebpages < Testme def setup PlasmaVersion.versions_path = data('plasma-webpages/VERSIONS.inc') end def teardown PlasmaVersion.versions_path = nil end def test_info_render - ref = File.read(data('plasma-webpages/info-plasma-5.6.4.php')) + ref = File.read(data('plasma-webpages/info-plasma-5.9.1.php')) assert_not_equal('', ref) template = PlasmaInfoTemplate.new output = template.render assert_equal(ref, output) end def test_announce_render - ref = File.read(data('plasma-webpages/announce-plasma-5.6.4.php')) + ref = File.read(data('plasma-webpages/announce-plasma-5.9.1.php')) assert_not_equal('', ref) template = PlasmaAnnounceTemplate.new output = template.render assert_equal(ref.split($/), output.split($/)) end def test_versions plasma_versions = PlasmaVersion.new assert_not_equal({}, plasma_versions.values) - assert_equal('5.6.4', plasma_versions.values['VERSION']) - assert_equal('5.6.4', plasma_versions.version) - assert_equal('bugfix', plasma_versions.values['RELEASETYPE']) - assert_equal('bugfix', plasma_versions.releasetype) + assert_equal('5.9.1', plasma_versions.values['VERSION']) + assert_equal('5.9.1', plasma_versions.version) + assert_equal('Feature', plasma_versions.values['RELEASETYPE']) + assert_equal('Feature', plasma_versions.releasetype) assert_raises NoMethodError do plasma_versions.yolo end end end