teaspoon-bundle 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -0
- data/app/views/teaspoon/suite/_bundle_boot.html.erb +3 -1
- data/bin/setup +5 -0
- data/bin/test +34 -1
- data/circle.yml +11 -0
- data/lib/teaspoon/bundle/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c742b48e44f49df6b1e95fec4aa840b1aafc72e7
|
4
|
+
data.tar.gz: 8a164ebac88e367499aed535e102703688b7e5d0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 886a95183f802e5f2db1037e176c23f9a6d16dc1140ae5c4ada2f6c5405080f9dab64314dc819697581563c5a880e0958d4baa5c7645bdc14a2fbf89120e6ae9
|
7
|
+
data.tar.gz: b1906b2c042d1104409750ce1ffca5f2266182bc53445b326f667e6328bfa9624760b9580cdb0f4848c22e7399941f0b7ee3ce015c1e6bb17263f77d0f229a83
|
data/README.md
CHANGED
@@ -6,3 +6,7 @@ A Teaspoon boot partial and controller that serves up all the test assets into a
|
|
6
6
|
|
7
7
|
1. Add `teaspoon-bundle` to your `Gemfile` and run `bundle install`.
|
8
8
|
2. Add `suite.boot_partial = "bundle_boot"` to your `teaspoon_env.rb`.
|
9
|
+
|
10
|
+
## Known Issues
|
11
|
+
|
12
|
+
`teaspoon-bundle` is known to break code coverage provided by teaspoon.
|
@@ -1,4 +1,6 @@
|
|
1
|
-
|
1
|
+
<% params.permit! %>
|
2
|
+
<% query = params.to_h.slice('file').to_query %>
|
3
|
+
<%= content_tag(:script, "", src: "/teaspoon_bundle/#{@suite.name}?#{query}") %>
|
2
4
|
|
3
5
|
<script type="text/javascript">
|
4
6
|
Teaspoon.onWindowLoad(Teaspoon.execute);
|
data/bin/setup
CHANGED
data/bin/test
CHANGED
@@ -1,5 +1,38 @@
|
|
1
1
|
#!/bin/bash
|
2
2
|
set -e
|
3
|
+
|
3
4
|
pushd test/demo>/dev/null
|
4
|
-
bundle exec rake teaspoon
|
5
|
+
output=$(bundle exec rake teaspoon)
|
6
|
+
echo $output
|
7
|
+
if [[ $output != *"2 examples, 0 failures"* ]]
|
8
|
+
then
|
9
|
+
echo "expected '2 examples, 0 failures'"
|
10
|
+
exit 1
|
11
|
+
fi
|
12
|
+
|
13
|
+
output=$(bundle exec rake teaspoon files=spec/javascripts/whatever_spec.js)
|
14
|
+
echo $output
|
15
|
+
if [[ $output != *"1 example, 0 failures"* ]]
|
16
|
+
then
|
17
|
+
echo "expected '1 example, 0 failures'"
|
18
|
+
exit 1
|
19
|
+
fi
|
20
|
+
popd>/dev/null
|
21
|
+
|
22
|
+
pushd test/demo_rails5>/dev/null
|
23
|
+
output=$(bundle exec rake teaspoon)
|
24
|
+
echo $output
|
25
|
+
if [[ $output != *"2 examples, 0 failures"* ]]
|
26
|
+
then
|
27
|
+
echo "expected '2 examples, 0 failures'"
|
28
|
+
exit 1
|
29
|
+
fi
|
30
|
+
|
31
|
+
output=$(bundle exec rake teaspoon files=spec/javascripts/whatever_spec.js)
|
32
|
+
echo $output
|
33
|
+
if [[ $output != *"1 example, 0 failures"* ]]
|
34
|
+
then
|
35
|
+
echo "expected '1 example, 0 failures'"
|
36
|
+
exit 1
|
37
|
+
fi
|
5
38
|
popd>/dev/null
|
data/circle.yml
ADDED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: teaspoon-bundle
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bouke van der Bijl
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-06-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: teaspoon
|
@@ -83,6 +83,7 @@ files:
|
|
83
83
|
- app/views/teaspoon/suite/_bundle_boot.html.erb
|
84
84
|
- bin/setup
|
85
85
|
- bin/test
|
86
|
+
- circle.yml
|
86
87
|
- lib/teaspoon-bundle.rb
|
87
88
|
- lib/teaspoon/bundle.rb
|
88
89
|
- lib/teaspoon/bundle/engine.rb
|
@@ -109,7 +110,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
109
110
|
version: '0'
|
110
111
|
requirements: []
|
111
112
|
rubyforge_project:
|
112
|
-
rubygems_version: 2.5.1
|
113
|
+
rubygems_version: 2.4.5.1
|
113
114
|
signing_key:
|
114
115
|
specification_version: 4
|
115
116
|
summary: Dynamically create a test bundle for Teaspoon that contains all the files
|