[DRE-commits] [ruby-uglifier] 10/11: fix tests to pass under autopkgtest
Antonio Terceiro
terceiro at moszumanska.debian.org
Mon Aug 8 01:05:08 UTC 2016
This is an automated email from the git hooks/post-receive script.
terceiro pushed a commit to branch master
in repository ruby-uglifier.
commit c7c5f9bdc232d8898865346dd4e7a97cd737999a
Author: Antonio Terceiro <terceiro at debian.org>
Date: Sun Aug 7 20:59:03 2016 -0300
fix tests to pass under autopkgtest
---
.../0002-Adjust-tests-to-lib-uglify.js-being-dropped.patch | 8 ++++----
debian/patches/0003-Mark-test-as-pending.patch | 2 +-
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/debian/patches/0002-Adjust-tests-to-lib-uglify.js-being-dropped.patch b/debian/patches/0002-Adjust-tests-to-lib-uglify.js-being-dropped.patch
index cf951ce..91d5bcc 100644
--- a/debian/patches/0002-Adjust-tests-to-lib-uglify.js-being-dropped.patch
+++ b/debian/patches/0002-Adjust-tests-to-lib-uglify.js-being-dropped.patch
@@ -9,7 +9,7 @@ This patch is Debian-specific
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/spec/source_map_spec.rb b/spec/source_map_spec.rb
-index bf2aebf..e1d3ec0 100644
+index bf2aebf..8803db7 100644
--- a/spec/source_map_spec.rb
+++ b/spec/source_map_spec.rb
@@ -16,7 +16,7 @@ describe "Uglifier" do
@@ -17,12 +17,12 @@ index bf2aebf..e1d3ec0 100644
it "generates source maps" do
- source = File.open("lib/uglify.js", "r:UTF-8").read
-+ source = File.open("lib/split.js", "r:UTF-8").read
++ source = File.open("/usr/share/javascript/source-map/source-map.js", "r:UTF-8").read
minified, map = Uglifier.new.compile_with_map(source)
expect(minified.length).to be < source.length
expect(map.length).to be > 0
diff --git a/spec/uglifier_spec.rb b/spec/uglifier_spec.rb
-index 9304d35..55f23bc 100644
+index 9304d35..34f3332 100644
--- a/spec/uglifier_spec.rb
+++ b/spec/uglifier_spec.rb
@@ -4,7 +4,7 @@ require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
@@ -30,7 +30,7 @@ index 9304d35..55f23bc 100644
describe "Uglifier" do
it "minifies JS" do
- source = File.open("lib/uglify.js", "r:UTF-8").read
-+ source = File.open("lib/split.js", "r:UTF-8").read
++ source = File.open("/usr/share/javascript/source-map/source-map.js", "r:UTF-8").read
minified = Uglifier.new.compile(source)
expect(minified.length).to be < source.length
expect { Uglifier.new.compile(minified) }.not_to raise_error
diff --git a/debian/patches/0003-Mark-test-as-pending.patch b/debian/patches/0003-Mark-test-as-pending.patch
index 4c33c68..0cd2343 100644
--- a/debian/patches/0003-Mark-test-as-pending.patch
+++ b/debian/patches/0003-Mark-test-as-pending.patch
@@ -8,7 +8,7 @@ This patch is Debian-specific
1 file changed, 1 insertion(+)
diff --git a/spec/source_map_spec.rb b/spec/source_map_spec.rb
-index e1d3ec0..6938d17 100644
+index 8803db7..9cd9880 100644
--- a/spec/source_map_spec.rb
+++ b/spec/source_map_spec.rb
@@ -57,6 +57,7 @@ describe "Uglifier" do
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-uglifier.git
More information about the Pkg-ruby-extras-commits
mailing list