ajaxlibs 0.1.6 → 0.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -81,7 +81,7 @@ describe "Ajaxlibs::IncludesHelper" do
81
81
  end # end of context "in development environment"
82
82
 
83
83
  context "in production environment" do
84
- before :all do
84
+ before :each do
85
85
  Object.send(:remove_const, 'RAILS_ENV') if Object.const_defined?('RAILS_ENV')
86
86
  RAILS_ENV = 'production'
87
87
  end
@@ -95,6 +95,17 @@ describe "Ajaxlibs::IncludesHelper" do
95
95
  @fake_action_view.ajaxlibs_include :prototype
96
96
  end
97
97
 
98
+ example "on environments defined in ProductionEnvironments" do
99
+ Ajaxlibs::ProductionEnvironments << 'fake_production_environment'
100
+ Object.send(:remove_const, 'RAILS_ENV') if Object.const_defined?('RAILS_ENV')
101
+ RAILS_ENV = 'fake_production_environment'
102
+ @fake_action_view.should_receive(:javascript_include_tag).
103
+ with(Ajaxlibs::Library.by_name(:prototype).google_cdn_include_path).
104
+ once
105
+
106
+ @fake_action_view.ajaxlibs_include :prototype
107
+ end
108
+
98
109
  example "once for each specified library" do
99
110
  @fake_action_view.should_receive(:javascript_include_tag).
100
111
  with(Ajaxlibs::Library.by_name(:prototype).google_cdn_include_path).once
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 6
9
- version: 0.1.6
8
+ - 7
9
+ version: 0.1.7
10
10
  platform: ruby
11
11
  authors:
12
12
  - Fabien Jakimowicz
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-04-07 00:00:00 +02:00
17
+ date: 2010-04-27 00:00:00 +02:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -69,6 +69,8 @@ files:
69
69
  - public/dojo/1.3.2/dojo.xd.js.uncompressed.js
70
70
  - public/dojo/1.4.0/dojo.xd.js.uncompressed.js
71
71
  - public/dojo/1.4.1/dojo.xd.js.uncompressed.js
72
+ - public/ext-core/3.0.0/ext-core-debug.js
73
+ - public/ext-core/3.1.0/ext-core-debug.js
72
74
  - public/jquery/1.2.3/jquery.js
73
75
  - public/jquery/1.2.6/jquery.js
74
76
  - public/jquery/1.3.0/jquery.js