From 8493bf2836f57d063b282ddc4a1c966a2934c035 Mon Sep 17 00:00:00 2001 From: Erik Hetzner Date: Tue, 17 May 2022 12:47:45 -0700 Subject: [PATCH] Add version check --- Makefile | 2 ++ test/test.rb | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a9c4657..e0c0d82 100644 --- a/Makefile +++ b/Makefile @@ -4,6 +4,8 @@ VERSION=$(shell grep em:version extension/install.rdf | grep -o "[0-9\\.]*") dist: test zotxt-$(VERSION).xpi ; +notest: zotxt-$(VERSION).xpi ; + zotxt-$(VERSION).xpi: extension/install.rdf extension/bootstrap.js extension/resource/translators/EasyKeyExporter.js cd extension && zip -r ../zotxt-$(VERSION).xpi * diff --git a/test/test.rb b/test/test.rb index 9a21d29..e993e98 100644 --- a/test/test.rb +++ b/test/test.rb @@ -533,7 +533,7 @@ def test_select def test_version resp = @client.get(@version_url) assert_equal 200, resp.status - assert_match(/^(5|6)/, JSON.parse(resp.body)['version']) + assert_match(/^6.0.2$/, JSON.parse(resp.body)['version']) end def test_locales