specjour 0.6.2 → 0.6.3
Sign up to get free protection for your applications and to get access to all the features.
- data/History.markdown +6 -0
- data/lib/specjour/loader.rb +2 -4
- data/lib/specjour.rb +1 -1
- metadata +3 -3
data/History.markdown
CHANGED
@@ -1,6 +1,12 @@
|
|
1
1
|
History
|
2
2
|
=======
|
3
3
|
|
4
|
+
0.6.3 / 2012-09-12
|
5
|
+
---------------------------
|
6
|
+
* [fixed] Observe filtered examples set in the RSpec configuration object
|
7
|
+
|
8
|
+
[Full Changelog](https://github.com/sandro/specjour/compare/v0.6.2...v0.6.3)
|
9
|
+
|
4
10
|
0.6.2 / 2012-08-20
|
5
11
|
---------------------------
|
6
12
|
* [fixed] File location for contexts within shared examples
|
data/lib/specjour/loader.rb
CHANGED
@@ -101,9 +101,7 @@ module Specjour
|
|
101
101
|
|
102
102
|
def filtered_examples
|
103
103
|
examples = ::RSpec.world.example_groups.map do |g|
|
104
|
-
g.
|
105
|
-
gs.examples
|
106
|
-
end
|
104
|
+
g.descendant_filtered_examples
|
107
105
|
end.flatten
|
108
106
|
locations = examples.map do |e|
|
109
107
|
meta = e.metadata
|
@@ -114,7 +112,7 @@ module Specjour
|
|
114
112
|
meta = shared_group.metadata[:example_group]
|
115
113
|
end
|
116
114
|
meta[:location]
|
117
|
-
end
|
115
|
+
end
|
118
116
|
ensure
|
119
117
|
::RSpec.reset
|
120
118
|
end
|
data/lib/specjour.rb
CHANGED
@@ -29,7 +29,7 @@ module Specjour
|
|
29
29
|
autoload :Cucumber, 'specjour/cucumber'
|
30
30
|
autoload :RSpec, 'specjour/rspec'
|
31
31
|
|
32
|
-
VERSION ||= "0.6.
|
32
|
+
VERSION ||= "0.6.3"
|
33
33
|
HOOKS_PATH ||= "./.specjour/hooks.rb"
|
34
34
|
PROGRAM_NAME ||= $PROGRAM_NAME # keep a reference of the original program name
|
35
35
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: specjour
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-09-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: dnssd
|
@@ -177,7 +177,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
177
177
|
version: '0'
|
178
178
|
segments:
|
179
179
|
- 0
|
180
|
-
hash:
|
180
|
+
hash: 1401403201445892277
|
181
181
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
182
182
|
none: false
|
183
183
|
requirements:
|