superbara 0.14.1 → 0.14.2

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
  SHA256:
3
- metadata.gz: 0a02b6bfd273cbffc96fd81528dd4ebe9e6641a7c14d33705134f7db8e206fac
4
- data.tar.gz: ea42018036a97edc853c6ddfacaef08f78a62cd22647819725bbc4db532c2a86
3
+ metadata.gz: 4bd316e90224b0b3765fbbdb79f8c0b42aaa0ba4fbab4bfc9497c0b3be4012a3
4
+ data.tar.gz: 51dc4957898255ef539c946c54a7e99b3702b329dfa2aba56f821611dc5ec7d3
5
5
  SHA512:
6
- metadata.gz: 584b61e65fdb59e708633f8599ef2574958f7d1a7c20f0882fe0a0aec215f11f9a3d0268f7d45595c60d65617435a7a446c0481c2ff757fa8c9d2960523407d2
7
- data.tar.gz: 6dbc0ba71ddb58e435dcddcc3a14764a6391b301344f2c906fce06bc2a013c319238261585229342981d2eeffad77f8e9f17c7774b6f1ee5ed18ea4d414ef146
6
+ metadata.gz: 54629968c68b4970031293e030acefb71ebdafe9a34e211f333ea5501e4931594e64e7448c932d650adca196468f75a45a78979800bb9ab92aa95e688aa98aa4
7
+ data.tar.gz: 540660c0f1f0fdef6be1accb5eb44b8dc69b90045510307633beeebe0be1308212d37dc922d70b4ff01babf7e5f482e5b1615422c025bb1d50a8218e47d99590
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- superbara (0.14.1)
4
+ superbara (0.14.2)
5
5
  astrolabe (~> 1.3, >= 1.3.1)
6
6
  binding_of_caller (~> 0.8, >= 0.8.0)
7
7
  capybara (~> 3.1, >= 3.1.0)
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
@@ -1,3 +1,3 @@
1
1
  module Superbara
2
- VERSION = "0.14.1"
2
+ VERSION = "0.14.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: superbara
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.1
4
+ version: 0.14.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matti Paksula