js-test-driver-rails 0.2.7 → 0.2.8

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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.7
1
+ 0.2.8
@@ -19,7 +19,7 @@ module JsTestDriver
19
19
 
20
20
  def to_s
21
21
  <<JS
22
- if (typeof(#{namespace}) !== 'undefined') { #{namespace} = {}; }
22
+ if (typeof(#{namespace}) === 'undefined') { #{namespace} = {}; }
23
23
  #{namespace}.#{name} = #{self.to_h.to_json};
24
24
  JS
25
25
  end
@@ -55,7 +55,7 @@ module JsTestDriver
55
55
  fixture = fixture_named('foo', 'ns')
56
56
 
57
57
  # then
58
- assert_contains "if (typeof(ns) !== 'undefined') { ns = {}; }", fixture.to_s
58
+ assert_contains "if (typeof(ns) === 'undefined') { ns = {}; }", fixture.to_s
59
59
  end
60
60
 
61
61
  def test_should_set_the_fixture
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: js-test-driver-rails
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 7
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 7
10
- version: 0.2.7
9
+ - 8
10
+ version: 0.2.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - Adam Pohorecki