superbara 0.14.1 → 0.14.2
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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/superbara/cli.rb +12 -1
- data/lib/superbara/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4bd316e90224b0b3765fbbdb79f8c0b42aaa0ba4fbab4bfc9497c0b3be4012a3
|
|
4
|
+
data.tar.gz: 51dc4957898255ef539c946c54a7e99b3702b329dfa2aba56f821611dc5ec7d3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 54629968c68b4970031293e030acefb71ebdafe9a34e211f333ea5501e4931594e64e7448c932d650adca196468f75a45a78979800bb9ab92aa95e688aa98aa4
|
|
7
|
+
data.tar.gz: 540660c0f1f0fdef6be1accb5eb44b8dc69b90045510307633beeebe0be1308212d37dc922d70b4ff01babf7e5f482e5b1615422c025bb1d50a8218e47d99590
|
data/Gemfile.lock
CHANGED
data/lib/superbara/cli.rb
CHANGED
|
@@ -29,7 +29,7 @@ module Superbara; module CLI
|
|
|
29
29
|
exit 0
|
|
30
30
|
when "web", "shell"
|
|
31
31
|
#
|
|
32
|
-
when "init", "init:robot"
|
|
32
|
+
when "init", "init:robot", "init:rspec"
|
|
33
33
|
project_name = ARGV[1]
|
|
34
34
|
unless project_name
|
|
35
35
|
puts "project name missing"
|
|
@@ -82,6 +82,17 @@ Result Should Contain
|
|
|
82
82
|
[arguments] ${content}
|
|
83
83
|
Wait Until Page Contains ${content} 10 s
|
|
84
84
|
""", "main.robot", "start:robot"]
|
|
85
|
+
when "init:rspec"
|
|
86
|
+
["""RSpec.describe 'example.com' do
|
|
87
|
+
it 'has text Example Domain' do
|
|
88
|
+
visit 'example.com'
|
|
89
|
+
|
|
90
|
+
wait do
|
|
91
|
+
has_text? 'Example Domain'
|
|
92
|
+
end
|
|
93
|
+
end
|
|
94
|
+
end
|
|
95
|
+
""", "main_spec.rb", "start:rspec"]
|
|
85
96
|
end
|
|
86
97
|
|
|
87
98
|
Dir.mkdir project_name
|
data/lib/superbara/version.rb
CHANGED