[DRE-commits] [ruby-gon] 01/03: add patch to fix tests with ruby-rabl-rails 0.4.x
Cédric Boutillier
boutil at moszumanska.debian.org
Sat Nov 15 15:34:51 UTC 2014
This is an automated email from the git hooks/post-receive script.
boutil pushed a commit to branch master
in repository ruby-gon.
commit 7714b0735f5a1531019669e0e415430e5ca1fbe5
Author: Cédric Boutillier <boutil at debian.org>
Date: Sat Nov 15 16:25:59 2014 +0100
add patch to fix tests with ruby-rabl-rails 0.4.x
---
debian/patches/fix_tests_with_rabl_rails.patch | 43 ++++++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 44 insertions(+)
diff --git a/debian/patches/fix_tests_with_rabl_rails.patch b/debian/patches/fix_tests_with_rabl_rails.patch
new file mode 100644
index 0000000..8d4b5c6
--- /dev/null
+++ b/debian/patches/fix_tests_with_rabl_rails.patch
@@ -0,0 +1,43 @@
+From 117c78bb3f2b78989e14187fccd8843b6e98f4fd Mon Sep 17 00:00:00 2001
+Author: Alexey Gaziev <alex.gaziev at gmail.com>
+Origin: commit:https://github.com/gazay/gon/commit/117c78bb3f2b78989e14187fccd8843b6e98f4fd.patch
+Bug-Debian: https://bugs.debian.org/768693
+Reviewed-by: Cédric Boutillier <boutil at debian.org>
+Last-Update: 2014-11-15
+Description: Fix specs for ruby-rabl-rails version 0.4
+
+--- a/spec/gon/rabl_with_rabl_rails_spec.rb
++++ b/spec/gon/rabl_with_rabl_rails_spec.rb
+@@ -4,6 +4,7 @@
+
+ before(:all) do
+ ensure_rabl_rails_is_loaded
++ RablRails.configuration.cache_templates = false
+ end
+
+ describe '.rabl with rabl-rails gem' do
+--- a/spec/spec_helper.rb
++++ b/spec/spec_helper.rb
+@@ -31,14 +31,17 @@
+ def ensure_rabl_rails_is_loaded
+ Object.send(:remove_const, :Rabl) if defined? Rabl
+ unless defined? RablRails
+- load 'rabl-rails/template.rb'
+- load 'rabl-rails/condition.rb'
++ load 'rabl-rails/renderer.rb'
++ load 'rabl-rails/helpers.rb'
++ load 'rabl-rails/configuration.rb'
++ load 'rabl-rails/nodes/node.rb'
++ load 'rabl-rails/nodes/attribute.rb'
+ load 'rabl-rails/compiler.rb'
+- load 'rabl-rails/renderers/base.rb'
++ load 'rabl-rails/renderers/hash.rb'
+ load 'rabl-rails/renderers/json.rb'
+- load 'rabl-rails/renderer.rb'
+- load 'rabl-rails/library.rb'
+ load 'rabl-rails.rb'
++ load 'rabl-rails/template.rb'
++ load 'rabl-rails/library.rb'
+ end
+ end
+
diff --git a/debian/patches/series b/debian/patches/series
index 9eff755..a92c703 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
change_watch_js_location.patch
remove_lib_from_loadpath_for_spec.patch
fix-json-scaping-on-tests-strings
+fix_tests_with_rabl_rails.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-gon.git
More information about the Pkg-ruby-extras-commits
mailing list