lopata 0.1.14 → 0.1.15

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: 39dff231d5f7bf1b95eced95c1a8ddf0c363ea6c99b391ca62b896550aca4823
4
- data.tar.gz: cc79dbade31aa4c975cc5cd935bb106b0b16d50ba5cd622a7e92ffd73692547c
3
+ metadata.gz: 2bcc4430dec94673cafa7b78a1ce7a1a9290539fdfc6c74d452db6bdbb36562e
4
+ data.tar.gz: f2cab1b0033f5d8a44d4bd9beba5b2b6c354b8ec05bd9ea91cf7ee329b1c0626
5
5
  SHA512:
6
- metadata.gz: 9dd29df0812efc5c5298f8579b0385858401fd4c5ae2c0627238401138abbdc2746f9e1035251255236788e64e33a47061ddcfc4bf25425ff5af6054c80bcccd
7
- data.tar.gz: 7c96430a0a8b573dade74592234781797e508073e6ac3ea3d7e07bd42b001abc29946998fcaed4eb4d924d47ff27b26c017c208338ad4523bf403553d8628273
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
  #
@@ -1,6 +1,6 @@
1
1
  module Lopata
2
2
  # @private
3
3
  module Version
4
- STRING = '0.1.14'
4
+ STRING = '0.1.15'
5
5
  end
6
6
  end
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.14
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-07-12 00:00:00.000000000 Z
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.14
141
+ summary: lopata-0.1.15
142
142
  test_files: []