oojspec 0.1.0 → 0.1.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5095c2b9f5123ab0c683a7585bd33f32b9946fa8
4
- data.tar.gz: b4dd0179a1f8bbf269a7c08e87160460a410e0cb
3
+ metadata.gz: d8c99dc922c683ad049471d512f71918b97795e2
4
+ data.tar.gz: 2be309a85ceaa6eda9cba57907f0e80e0219bca2
5
5
  SHA512:
6
- metadata.gz: 929c92a8a444716ff67357d63ee03642b0eaf7ce53fa9d4d1f5abb35c29bec1929396ba8b98eefc2776dc5b1d610809b12bcbb8bb15d2f70982c133824470036
7
- data.tar.gz: 1b6257da1a39b80d4f8599384207ebad5ba5fe22dc63887430f073cd68290d2588a57d4d66acf5e663291295f3abd1f394817820fa4af414cd48b46e5671ce0d
6
+ metadata.gz: cb119da788cfc082270caf1608e77b89c926522d28e6d82004e66f6d3b5950ffd2c719be58763a2e86b1e75451cb38d664cda4edf17fc7e49dc319f905a5a059
7
+ data.tar.gz: e66cbc397bda23e26c7f7b0c95e0a3734027bd7d3317844ac286c083015767ac1a22656a33e7a23130a8d934bd66faf2bc9a929687b62993b3fc8c11c5c374b6
data/README.md CHANGED
@@ -164,6 +164,7 @@ If you want to put your specs directly on `spec/javascripts`, add this to your a
164
164
 
165
165
  ```ruby
166
166
  config.sandbox_assets.template = 'oojspec/runner'
167
+ config.sandbox_assets.iframe_template = 'oojspec/iframe'
167
168
  ```
168
169
 
169
170
  Then you'll be able to run the specs by directly accessing http://localhost:5000.
@@ -3,7 +3,9 @@ require "rails-sandbox-assets"
3
3
  module Oojspec
4
4
  class OojspecFilter
5
5
  def self.filter(controller)
6
- controller.template = 'oojspec/runner' if controller.params[:path].try :start_with?, 'oojspec'
6
+ return unless controller.params[:path].try :start_with?, 'oojspec'
7
+ controller.template = 'oojspec/runner'
8
+ controller.iframe_template = 'oojspec/iframe'
7
9
  end
8
10
  end
9
11
 
@@ -1,3 +1,3 @@
1
1
  module Oojspec
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oojspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rodrigo Rosenfeld Rosas
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - '>='
32
32
  - !ruby/object:Gem::Version
33
- version: 0.1.0
33
+ version: 0.1.1
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '>='
39
39
  - !ruby/object:Gem::Version
40
- version: 0.1.0
40
+ version: 0.1.1
41
41
  description: |2-
42
42
  A test runner similar to RSpec for client-side code built
43
43
  on top of Buster.js that is more suited for integration tests.