gondola 1.1.9.pre1 → 1.1.9.pre2
Sign up to get free protection for your applications and to get access to all the features.
- data/gondola.gemspec +1 -1
- data/lib/gondola/tester.rb +3 -3
- data/lib/gondola/testrunner.rb +5 -7
- data/lib/gondola/version.rb +1 -1
- metadata +2 -2
data/gondola.gemspec
CHANGED
data/lib/gondola/tester.rb
CHANGED
@@ -37,19 +37,19 @@ module Gondola
|
|
37
37
|
end
|
38
38
|
|
39
39
|
def assert_not(expr)
|
40
|
-
unless
|
40
|
+
unless verify_not(expr)
|
41
41
|
raise "Assertion Failed"
|
42
42
|
end
|
43
43
|
end
|
44
44
|
|
45
45
|
def assert_equal(eq, expr)
|
46
|
-
unless
|
46
|
+
unless verify_equal(eq, expr)
|
47
47
|
raise "Assertion Failed"
|
48
48
|
end
|
49
49
|
end
|
50
50
|
|
51
51
|
def assert_not_equal(eq, expr)
|
52
|
-
unless
|
52
|
+
unless verify_not_equal(eq, expr)
|
53
53
|
raise "Assertion Failed"
|
54
54
|
end
|
55
55
|
end
|
data/lib/gondola/testrunner.rb
CHANGED
@@ -83,7 +83,7 @@ module Gondola
|
|
83
83
|
|
84
84
|
# Function to read any config files which contain data for this
|
85
85
|
# test case or suite
|
86
|
-
def config_from_file(file, api=true
|
86
|
+
def config_from_file(file, api=true)
|
87
87
|
# If the given test is just a file then start your search in
|
88
88
|
# its parent directory
|
89
89
|
unless File.directory? file
|
@@ -99,17 +99,15 @@ module Gondola
|
|
99
99
|
api = false
|
100
100
|
end
|
101
101
|
end
|
102
|
-
if
|
103
|
-
|
104
|
-
|
105
|
-
data = false
|
106
|
-
end
|
102
|
+
if File.exists? "config.yml"
|
103
|
+
conf.merge! YAML.load_file("config.yml")
|
104
|
+
data = false
|
107
105
|
end
|
108
106
|
end
|
109
107
|
# Recurse through the parent directories and merge the
|
110
108
|
# current configuration
|
111
109
|
unless file == File.dirname(file)
|
112
|
-
return config_from_file(File.expand_path(File.dirname(file)), api
|
110
|
+
return config_from_file(File.expand_path(File.dirname(file)), api).merge(conf)
|
113
111
|
end
|
114
112
|
return conf
|
115
113
|
end
|
data/lib/gondola/version.rb
CHANGED
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: gondola
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease: 6
|
5
|
-
version: 1.1.9.
|
5
|
+
version: 1.1.9.pre2
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Matthew Perry
|
@@ -111,7 +111,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
111
111
|
requirements:
|
112
112
|
- - ">="
|
113
113
|
- !ruby/object:Gem::Version
|
114
|
-
hash:
|
114
|
+
hash: 684839645
|
115
115
|
segments:
|
116
116
|
- 0
|
117
117
|
version: "0"
|