File: fix_path_default_locale_integration_tests.patch

package info (click to toggle)
ruby-state-machine 1.2.0-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 3,764 kB
  • ctags: 6,623
  • sloc: ruby: 26,008; makefile: 11
file content (50 lines) | stat: -rw-r--r-- 2,615 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
Description: fix path for default locale in integration tests
Origin: vendor
Author: Cédric Boutillier <boutil@debian.org>
Forwarded: not-needed
Last-Update: 2014-03-05

--- a/test/unit/integrations/active_model_test.rb
+++ b/test/unit/integrations/active_model_test.rb
@@ -1215,7 +1215,7 @@
       I18n.backend = I18n::Backend::Simple.new
       
       app_locale = File.dirname(__FILE__) + '/../../files/en.yml'
-      default_locale = File.dirname(__FILE__) + '/../../../lib/state_machine/integrations/active_model/locale.rb'
+      default_locale = File.dirname(__FILE__) + '/../../../debian/ruby-state-machine/usr/lib/ruby/vendor_ruby/state_machine/integrations/active_model/locale.rb'
       I18n.load_path = [app_locale]
       
       StateMachine::Machine.new(@model)
--- a/test/unit/integrations/mongo_mapper_test.rb
+++ b/test/unit/integrations/mongo_mapper_test.rb
@@ -1993,7 +1993,7 @@
         I18n.backend = I18n::Backend::Simple.new
         
         app_locale = File.dirname(__FILE__) + '/../../files/en.yml'
-        default_locale = File.dirname(__FILE__) + '/../../../lib/state_machine/integrations/mongo_mapper/locale.rb'
+        default_locale = File.dirname(__FILE__) + '/../../debian/ruby-state-machine/usr/lib/ruby/vendor_ruby/state_machine/integrations/mongo_mapper/locale.rb'
         I18n.load_path = [app_locale]
         
         StateMachine::Machine.new(@model)
--- a/test/unit/integrations/mongoid_test.rb
+++ b/test/unit/integrations/mongoid_test.rb
@@ -2279,7 +2279,7 @@
       I18n.backend = I18n::Backend::Simple.new
       
       app_locale = File.dirname(__FILE__) + '/../../files/en.yml'
-      default_locale = File.dirname(__FILE__) + '/../../../lib/state_machine/integrations/mongoid/locale.rb'
+      default_locale = File.dirname(__FILE__) + '/../../../debian/ruby-state-machine/usr/libruby/vendor_ruby/state_machine/integrations/mongoid/locale.rb'
       I18n.load_path = [app_locale]
       
       StateMachine::Machine.new(@model)
--- a/test/unit/integrations/active_record_test.rb
+++ b/test/unit/integrations/active_record_test.rb
@@ -2513,7 +2513,7 @@
         I18n.backend = I18n::Backend::Simple.new
         
         app_locale = File.dirname(__FILE__) + '/../../files/en.yml'
-        default_locale = File.dirname(__FILE__) + '/../../../lib/state_machine/integrations/active_record/locale.rb'
+        default_locale = File.dirname(__FILE__) + '/../../../debian/ruby-state-machine/usr/lib/ruby/vendor_ruby/state_machine/integrations/active_record/locale.rb'
         I18n.load_path = [app_locale]
         
         StateMachine::Machine.new(@model)