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 +4 -4
- data/README.md +1 -0
- data/lib/oojspec/engine.rb +3 -1
- data/lib/oojspec/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d8c99dc922c683ad049471d512f71918b97795e2
|
|
4
|
+
data.tar.gz: 2be309a85ceaa6eda9cba57907f0e80e0219bca2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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.
|
data/lib/oojspec/engine.rb
CHANGED
|
@@ -3,7 +3,9 @@ require "rails-sandbox-assets"
|
|
|
3
3
|
module Oojspec
|
|
4
4
|
class OojspecFilter
|
|
5
5
|
def self.filter(controller)
|
|
6
|
-
|
|
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
|
|
data/lib/oojspec/version.rb
CHANGED
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.
|
|
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.
|
|
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.
|
|
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.
|