cucumber_generator 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/cucumber_generator/version.rb +1 -1
- data/lib/generators/feature/templates/features/users/background_steps.feature +1 -3
- data/lib/generators/feature/templates/features/users/background_steps_with_models.feature +3 -0
- data/lib/generators/feature/user.rb +5 -2
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NjBjMzJlN2Q3MTY5OGViOTU3OGY2ZTBhNTEyOWUyMzY2NDY5NzM1YQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MjY0N2IyZjY0MjU4Y2ZkOTNhNmI3ZDIwMzgyZGI5ZGMyMjVhMDZjNw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
OTFkOTk0OTIwM2YzYmVlMjZkZTNkNWJhZTNlNjQ5MTZkMjgxODIwMDNlZjdj
|
10
|
+
Njc5MDA1MDY1NTM1ZDcwZDNiYjAzZDliZDJkYjYxYTNiOTMyYjQxNDAzMDI4
|
11
|
+
MGQ3ODY0MGFjZGZiYjk1ODE2YzU4YjA4ZjQ5ODI4ZjVjNzQ1YWY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
Y2ZkMGZhYWI0N2Q3NjllZTQ0M2UxNDU3YjA3NmFjMTMyOThmZDA5MWRjMmJi
|
14
|
+
OGQ0ZGFiMzU5MTMzZDUzZTY5MGM3NDVmMzBmOTA1NTUyNmQyOGEzMjVmZDBm
|
15
|
+
YmJhNTdjZTJhM2RkMjBmNGRmYWU3M2UwZjZlZTYwMTAzNGM2NDU=
|
@@ -10,8 +10,11 @@ class User
|
|
10
10
|
end
|
11
11
|
|
12
12
|
def background_steps(action = nil)
|
13
|
-
|
14
|
-
|
13
|
+
if action == :index || action == :delete || action == :edit
|
14
|
+
render File.join('features', 'users', "background_steps_with_models.feature")
|
15
|
+
else
|
16
|
+
render File.join('features', 'users', "background_steps.feature")
|
17
|
+
end
|
15
18
|
end
|
16
19
|
|
17
20
|
def set?
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cucumber_generator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John McConnell
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-12-
|
11
|
+
date: 2014-12-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -62,6 +62,7 @@ files:
|
|
62
62
|
- lib/generators/feature/templates/features/new.feature
|
63
63
|
- lib/generators/feature/templates/features/show.feature
|
64
64
|
- lib/generators/feature/templates/features/users/background_steps.feature
|
65
|
+
- lib/generators/feature/templates/features/users/background_steps_with_models.feature
|
65
66
|
- lib/generators/feature/templates/features/users/login_steps.feature
|
66
67
|
- lib/generators/feature/templates/step_definitions/blank_steps_file.rb
|
67
68
|
- lib/generators/feature/templates/step_definitions/delete_given_steps.rb
|