earlgrey 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f56e83c7ad91d9c73faf7666b1543b32a8c47d25
|
4
|
+
data.tar.gz: bbb1edf1a70f96e5674052d915d82f0ccff057ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e9ad619367e513319ea0a8fc9d881a2212abc4d3e4988681df2a92f27025d2a0c4fd48c65d61ca46c5abc9f5caa0ba976e008c9e98873a8f8a7ad819fadb5be9
|
7
|
+
data.tar.gz: de323507eca9b4e0fd4695a95b2e6909b0accbf5ceace999f5f5229144e29bc2812d3fdcfa4f9f95d17cc8e5dd33fee2a178de6713ba3cd0d13c81da948c6a78
|
@@ -233,21 +233,25 @@ module EarlGrey
|
|
233
233
|
launch_action_args = scheme.launch_action.xml_element.elements['CommandLineArguments']
|
234
234
|
|
235
235
|
# Add in the Environment Variables
|
236
|
-
launch_action_env_vars.
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
236
|
+
unless launch_action_env_vars.nil?
|
237
|
+
launch_action_env_vars.elements.each('EnvironmentVariable') do |launch_action_env_var|
|
238
|
+
environment_variable = REXML::Element.new 'EnvironmentVariable'
|
239
|
+
launch_attributes = launch_action_env_var.attributes
|
240
|
+
environment_variable.attributes['key'] = launch_attributes['key']
|
241
|
+
environment_variable.attributes['value'] = launch_attributes['value']
|
242
|
+
environment_variable.attributes['isEnabled'] = launch_attributes['isEnabled']
|
243
|
+
test_action_env_vars.add_element(environment_variable)
|
244
|
+
end
|
243
245
|
end
|
244
246
|
|
245
247
|
# Add in the Arguments
|
246
|
-
launch_action_args.
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
248
|
+
unless launch_action_args.nil?
|
249
|
+
launch_action_args.elements.each('CommandLineArgument') do |launch_action_arg|
|
250
|
+
argument = REXML::Element.new 'CommandLineArgument'
|
251
|
+
argument.attributes['argument'] = launch_action_arg.attributes['argument']
|
252
|
+
argument.attributes['isEnabled'] = launch_action_arg.attributes['isEnabled']
|
253
|
+
test_action_args.add_element(argument)
|
254
|
+
end
|
251
255
|
end
|
252
256
|
|
253
257
|
end
|
@@ -52,28 +52,48 @@ public func GREYAssertNil(@autoclosure expression: () -> Any?, reason: String) {
|
|
52
52
|
GREYAssert(expression() == nil, reason, details: "Expected expression to be nil")
|
53
53
|
}
|
54
54
|
|
55
|
-
public func GREYAssertEqual
|
55
|
+
public func GREYAssertEqual(@autoclosure left: () -> AnyObject?,
|
56
|
+
@autoclosure _ right: () -> AnyObject?, reason: String) {
|
57
|
+
GREYAssert(left() === right(), reason, details: "Expected left term to be equal to right term")
|
58
|
+
}
|
59
|
+
|
60
|
+
public func GREYAssertNotEqual(@autoclosure left: () -> AnyObject?,
|
61
|
+
@autoclosure _ right: () -> AnyObject?, reason: String) {
|
62
|
+
GREYAssert(left() !== right(), reason, details: "Expected left term to not be equal to right" +
|
63
|
+
" term")
|
64
|
+
}
|
65
|
+
|
66
|
+
public func GREYAssertEqualObjects<T : Equatable>(@autoclosure left: () -> T?,
|
56
67
|
@autoclosure _ right: () -> T?, reason: String) {
|
57
|
-
GREYAssert(left() == right(), reason, details: "Expected left term to be equal
|
68
|
+
GREYAssert(left() == right(), reason, details: "Expected object of the left term to be equal" +
|
69
|
+
" to the object of the right term")
|
58
70
|
}
|
59
71
|
|
60
|
-
public func
|
72
|
+
public func GREYAssertNotEqualObjects<T : Equatable>(@autoclosure left: () -> T?,
|
61
73
|
@autoclosure _ right: () -> T?, reason: String) {
|
62
|
-
GREYAssert(left() != right(), reason, details: "Expected left term to not be
|
74
|
+
GREYAssert(left() != right(), reason, details: "Expected object of the left term to not be" +
|
75
|
+
" equal to the object of the right term")
|
63
76
|
}
|
64
77
|
|
65
78
|
public func GREYFail(reason: String) {
|
66
79
|
greyFailureHandler.handleException(GREYFrameworkException(name: kGREYAssertionFailedException,
|
67
80
|
reason: reason),
|
68
|
-
|
81
|
+
details: "")
|
69
82
|
}
|
70
83
|
|
84
|
+
@available(*, deprecated=1.2.0, message="Please use GREYFAIL::withDetails instead.")
|
71
85
|
public func GREYFail(reason: String, details: String) {
|
72
86
|
greyFailureHandler.handleException(GREYFrameworkException(name: kGREYAssertionFailedException,
|
73
87
|
reason: reason),
|
74
88
|
details: details)
|
75
89
|
}
|
76
90
|
|
91
|
+
public func GREYFailWithDetails(reason: String, details: String) {
|
92
|
+
greyFailureHandler.handleException(GREYFrameworkException(name: kGREYAssertionFailedException,
|
93
|
+
reason: reason),
|
94
|
+
details: details)
|
95
|
+
}
|
96
|
+
|
77
97
|
private func GREYAssert(@autoclosure expression: () -> BooleanType,
|
78
98
|
_ reason: String, details: String) {
|
79
99
|
GREYSetCurrentAsFailable()
|
@@ -50,14 +50,27 @@ public func GREYAssertNil(@autoclosure expression: () -> Any?, reason: String) {
|
|
50
50
|
GREYAssert(expression() == nil, reason, details: "Expected expression to be nil")
|
51
51
|
}
|
52
52
|
|
53
|
-
public func GREYAssertEqual
|
53
|
+
public func GREYAssertEqual(@autoclosure left: () -> AnyObject?,
|
54
|
+
@autoclosure _ right: () -> AnyObject?, reason: String) {
|
55
|
+
GREYAssert(left() === right(), reason, details: "Expected left term to be equal to right term")
|
56
|
+
}
|
57
|
+
|
58
|
+
public func GREYAssertNotEqual(@autoclosure left: () -> AnyObject?,
|
59
|
+
@autoclosure _ right: () -> AnyObject?, reason: String) {
|
60
|
+
GREYAssert(left() !== right(), reason, details: "Expected left term to not be equal to right" +
|
61
|
+
" term")
|
62
|
+
}
|
63
|
+
|
64
|
+
public func GREYAssertEqualObjects<T : Equatable>(@autoclosure left: () -> T?,
|
54
65
|
@autoclosure _ right: () -> T?, reason: String) {
|
55
|
-
GREYAssert(left() == right(), reason, details: "Expected left term to be equal
|
66
|
+
GREYAssert(left() == right(), reason, details: "Expected object of the left term to be equal" +
|
67
|
+
" to the object of the right term")
|
56
68
|
}
|
57
69
|
|
58
|
-
public func
|
70
|
+
public func GREYAssertNotEqualObjects<T : Equatable>(@autoclosure left: () -> T?,
|
59
71
|
@autoclosure _ right: () -> T?, reason: String) {
|
60
|
-
GREYAssert(left() != right(), reason, details: "Expected left term to not be
|
72
|
+
GREYAssert(left() != right(), reason, details: "Expected object of the left term to not be" +
|
73
|
+
" equal to the object of the right term")
|
61
74
|
}
|
62
75
|
|
63
76
|
public func GREYFail(reason: String) {
|
@@ -66,12 +79,19 @@ public func GREYFail(reason: String) {
|
|
66
79
|
details: "")
|
67
80
|
}
|
68
81
|
|
82
|
+
@available(*, deprecated=1.2.0, message="Please use GREYFAIL::withDetails instead.")
|
69
83
|
public func GREYFail(reason: String, details: String) {
|
70
84
|
greyFailureHandler.handleException(GREYFrameworkException(name: kGREYAssertionFailedException,
|
71
85
|
reason: reason),
|
72
86
|
details: details)
|
73
87
|
}
|
74
88
|
|
89
|
+
public func GREYFailWithDetails(reason: String, details: String) {
|
90
|
+
greyFailureHandler.handleException(GREYFrameworkException(name: kGREYAssertionFailedException,
|
91
|
+
reason: reason),
|
92
|
+
details: details)
|
93
|
+
}
|
94
|
+
|
75
95
|
private func GREYAssert(@autoclosure expression: () -> BooleanType,
|
76
96
|
_ reason: String, details: String) {
|
77
97
|
GREYSetCurrentAsFailable()
|
data/lib/earlgrey/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: earlgrey
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- khandpur
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2016-
|
13
|
+
date: 2016-09-01 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: colored
|