jasmine-rails 0.6.1 → 0.6.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,10 +5,10 @@
5
5
  <title>Jasmine Specs</title>
6
6
 
7
7
  <%= stylesheet_link_tag *jasmine_css_files %>
8
+ <%= javascript_include_tag *jasmine_js_files %>
8
9
  </head>
9
10
  <body>
10
11
  <div id="jasmine_content"></div>
11
12
  <%= yield %>
12
- <%= javascript_include_tag *jasmine_js_files %>
13
13
  </body>
14
14
  </html>
data/lib/jasmine-rails.rb CHANGED
@@ -55,6 +55,11 @@ module JasmineRails
55
55
  @config = nil
56
56
  end
57
57
 
58
+ # force ssl when loading the test runner. Set to true if your app forces SSL
59
+ def force_ssl
60
+ jasmine_config['force_ssl'] || false
61
+ end
62
+
58
63
  private
59
64
 
60
65
  def src_dir
@@ -53,6 +53,7 @@ module JasmineRails
53
53
 
54
54
  def get_spec_runner(spec_filter)
55
55
  app = ActionDispatch::Integration::Session.new(Rails.application)
56
+ app.https!(JasmineRails.force_ssl)
56
57
  path = JasmineRails.route_path
57
58
  JasmineRails::OfflineAssetPaths.disabled = false
58
59
  app.get path, :console => 'true', :spec => spec_filter
@@ -1,3 +1,3 @@
1
1
  module JasmineRails
2
- VERSION = "0.6.1"
2
+ VERSION = "0.6.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jasmine-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -148,7 +148,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
148
148
  version: '0'
149
149
  segments:
150
150
  - 0
151
- hash: 3434837048496906683
151
+ hash: -2340045903019797591
152
152
  required_rubygems_version: !ruby/object:Gem::Requirement
153
153
  none: false
154
154
  requirements:
@@ -157,7 +157,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
157
157
  version: '0'
158
158
  segments:
159
159
  - 0
160
- hash: 3434837048496906683
160
+ hash: -2340045903019797591
161
161
  requirements: []
162
162
  rubyforge_project:
163
163
  rubygems_version: 1.8.23