magicspec 0.0.6 → 0.0.7
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 75e5137fdef8e8b8e7dccb7b4168ef20ce7f7889
|
|
4
|
+
data.tar.gz: 7bb6ef6c0fb5606d4aa8f4e1d21db850db78f622
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7c131f73ab23d27dbbd2cd982c135052d291b13dd8807fd22ecd1d34e4f718ee2f902bed97bd645463ddd86a051d2c3d067ea1e9349680f84942b7b0ab95ba1c
|
|
7
|
+
data.tar.gz: c70046183b2c3da5d5fb65129cde1f23a090c348a3654db8c9d47307309f3beacfd35b5b65c6d68324da4457f9c7007e242111b1606fc405a33dfe2c496c1d34
|
|
@@ -4,7 +4,6 @@ require 'psych'
|
|
|
4
4
|
require 'rspec-rerun'
|
|
5
5
|
require 'fuubar'
|
|
6
6
|
require 'magicspec'
|
|
7
|
-
require 'active_record'
|
|
8
7
|
require 'net/http'
|
|
9
8
|
require 'watir-browser-factory'
|
|
10
9
|
|
|
@@ -120,13 +119,13 @@ RSpec.configure do |c|
|
|
|
120
119
|
end
|
|
121
120
|
|
|
122
121
|
# If there is a tag value and no one has passed a filter to rspec use the config
|
|
123
|
-
if $config
|
|
124
|
-
unless($config
|
|
122
|
+
if $config["tags"] && c.inclusion_filter.empty?
|
|
123
|
+
unless($config["tags"].empty?)
|
|
125
124
|
tags = case
|
|
126
125
|
when String
|
|
127
|
-
$config
|
|
126
|
+
$config["tags"].lazy_to_hash
|
|
128
127
|
when Hash
|
|
129
|
-
$config
|
|
128
|
+
$config["tags"]
|
|
130
129
|
end #case
|
|
131
130
|
c.filter_run tags
|
|
132
131
|
end
|
|
@@ -142,4 +141,4 @@ RSpec.configure do |c|
|
|
|
142
141
|
end
|
|
143
142
|
Psych.load ERB.new(content).result(binding)
|
|
144
143
|
end
|
|
145
|
-
end
|
|
144
|
+
end
|
|
@@ -8,8 +8,7 @@ module Magicspec
|
|
|
8
8
|
|
|
9
9
|
def initialize filepath
|
|
10
10
|
@f ||= filepath if valid?(filepath)
|
|
11
|
-
File.open(@f) {|handle| @
|
|
12
|
-
@content = OpenStruct.new(@hash_content)
|
|
11
|
+
File.open(@f) {|handle| @content = YAML.load(handle)}
|
|
13
12
|
end
|
|
14
13
|
|
|
15
14
|
def valid?(filepath)
|
data/magicspec.gemspec
CHANGED