/
get_scene_command_steps.rb
37 lines (28 loc) · 1.67 KB
/
get_scene_command_steps.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# -*- coding: UTF-8 -*-
Then /^"([^"]*)"という(\w+)が存在してい(る|ない)(?:こと)?$/ do |name, type, negation|
step %[I should#{negation} have a #{type} named "#{name}"]
end
Then /^"([^"]*)"が存在してい(る|ない)(?:こと)?$/ do |name, negation|
step %[I should#{negation} have a GameObject named "#{name}"]
end
Then /^その中に(\w+)(?:コンポーネント)?が存在してい(る|ない)(?:こと)?$/ do |type, negation|
step %[it should#{negation} have a #{type} component]
end
Then /^その中に(\w+)というプロパティーが存在してい(る|ない)(?:こと)?$/ do |name, negation|
step %[it should#{negation} have a property named "#{name}"]
end
Then /^その中に"(\w+)"というプロパティーが存在してい(る|ない)(?:こと)?$/ do |name, negation|
step %[it should#{negation} have a property named "#{name}"]
end
Then /^その中に(\w+)(?:というプロパティー)?が"([^"]*)"(?:と|に)一致してい(る|ない)(?:こと)?$/ do |name, value, negation|
step %Q[it should#{negation} have "#{name}" property equal to "#{value}"]
end
Then /^その中に"(\w+)"(?:というプロパティー)?が"([^"]*)"(?:と|に)一致してい(る|ない)(?:こと)?$/ do |name, value, negation|
step %Q[it should#{negation} have "#{name}" property equal to "#{value}"]
end
Then /^その中に"(\w+)"(?:というプロパティー)?が有効になってい(る|ない)(?:こと)?$/ do |bool_name, negation|
step %Q[it should#{negation} be "#{bool_name}"]
end
Then /^その中に(\w+)(?:というプロパティー)?が有効になってい(る|ない)(?:こと)?$/ do |bool_name, negation|
step %Q[it should#{negation} be "#{bool_name}"]
end