lopata 0.1.14 → 0.1.15
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/exe/lopata +0 -0
- data/lib/lopata.rb +26 -0
- data/lib/lopata/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2bcc4430dec94673cafa7b78a1ce7a1a9290539fdfc6c74d452db6bdbb36562e
|
4
|
+
data.tar.gz: f2cab1b0033f5d8a44d4bd9beba5b2b6c354b8ec05bd9ea91cf7ee329b1c0626
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf4791606e84c616316e54fd191687e9b21ce86d47b627228a66b5b936886a28ffde9b4d5a50a52de72296ed7b957fb3c8eaa54ca5309d637ced84b080e4aa89
|
7
|
+
data.tar.gz: f4634151931554ed5583d04dc807929d56e85072bb0203be6548b94bfda6f7dfaa3eb2387505f7027eed8692c0c16bdaa6892f420ae826654713d268440108ea
|
data/exe/lopata
CHANGED
File without changes
|
data/lib/lopata.rb
CHANGED
@@ -40,6 +40,32 @@ module Lopata
|
|
40
40
|
Lopata::SharedStep.register(name, &block)
|
41
41
|
end
|
42
42
|
|
43
|
+
# Register the shared step for setup.
|
44
|
+
#
|
45
|
+
# shared_setup is a shortcat for shared_step 'name' { setup { .. } }. The block will be arrounded into the setup call.
|
46
|
+
#
|
47
|
+
# @example
|
48
|
+
# Lopata.shared_setup 'test user' do
|
49
|
+
# @user = create(:user)
|
50
|
+
# end
|
51
|
+
#
|
52
|
+
# Shared step may be used in scenarios by name:
|
53
|
+
# @example
|
54
|
+
# Lopata.define 'user' do
|
55
|
+
# setup 'test user'
|
56
|
+
#
|
57
|
+
# it 'exists' do
|
58
|
+
# expect(@user).to_not be_nil
|
59
|
+
# end
|
60
|
+
# end
|
61
|
+
# @param name [String] shared step unique name
|
62
|
+
# @param block [Block] shared setup definition
|
63
|
+
def self.shared_setup(name, &block)
|
64
|
+
Lopata::SharedStep.register(name) do
|
65
|
+
setup(&block)
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
43
69
|
# Yields the global configuration to a block.
|
44
70
|
# @yield [Lopata::Configuration] global configuration
|
45
71
|
#
|
data/lib/lopata/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lopata
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexey Volochnev
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-08-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -138,5 +138,5 @@ requirements: []
|
|
138
138
|
rubygems_version: 3.2.15
|
139
139
|
signing_key:
|
140
140
|
specification_version: 4
|
141
|
-
summary: lopata-0.1.
|
141
|
+
summary: lopata-0.1.15
|
142
142
|
test_files: []
|