cucumber_generator 0.0.1 → 0.0.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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- OGI3Zjk2YWFhNjc2ZWMzZmY1MDAzNDM0NWVmYWIyMzNiNzE0MjM2NQ==
4
+ NjBjMzJlN2Q3MTY5OGViOTU3OGY2ZTBhNTEyOWUyMzY2NDY5NzM1YQ==
5
5
  data.tar.gz: !binary |-
6
- MDU0ZGQ0OGNhMThlNTZlMTA5MGFjMzMwNzE1NTgwMDYzMDI1MGMzOA==
6
+ MjY0N2IyZjY0MjU4Y2ZkOTNhNmI3ZDIwMzgyZGI5ZGMyMjVhMDZjNw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NmI5NWQ0Y2EyZWJkMjRlNGM5NGM4ZGQ4ZWMxZDI3MWVjNGViNmZjYmU0ZDkw
10
- YWIwZjQ4NTk3MWUzNzc4NmY1YjM2ZmJiZWRhODEwODMyNWVjZWQ3OTM4NGMx
11
- M2Q3MmRlNzM3MjgzMzFiY2U0NWEzMTQyZWRkMjFhZjkwNGUyNTE=
9
+ OTFkOTk0OTIwM2YzYmVlMjZkZTNkNWJhZTNlNjQ5MTZkMjgxODIwMDNlZjdj
10
+ Njc5MDA1MDY1NTM1ZDcwZDNiYjAzZDliZDJkYjYxYTNiOTMyYjQxNDAzMDI4
11
+ MGQ3ODY0MGFjZGZiYjk1ODE2YzU4YjA4ZjQ5ODI4ZjVjNzQ1YWY=
12
12
  data.tar.gz: !binary |-
13
- YTM5ZGZjNmZiZTNlYWZhYTZmNmU1OWI1ZjQ4NDcxZjJmNThhNDEwYmI0YWVl
14
- NjYwY2UxZjFjNmMwNzBmNmRlNmMzMTRkNTljYmU5MDYxZDdlNmIzMjlhNGE1
15
- MTcxNWEwOGZjNGRjZjcyNWZjZmYyYTJiMWMyZjIwY2Q5NjJiMGE=
13
+ Y2ZkMGZhYWI0N2Q3NjllZTQ0M2UxNDU3YjA3NmFjMTMyOThmZDA5MWRjMmJi
14
+ OGQ0ZGFiMzU5MTMzZDUzZTY5MGM3NDVmMzBmOTA1NTUyNmQyOGEzMjVmZDBm
15
+ YmJhNTdjZTJhM2RkMjBmNGRmYWU3M2UwZjZlZTYwMTAzNGM2NDU=
@@ -1,3 +1,3 @@
1
1
  module CucumberGenerator
2
- VERSION = '0.0.1'
2
+ VERSION = '0.0.2'
3
3
  end
@@ -1,4 +1,2 @@
1
1
  Background:
2
- <%- if @action == :index -%>
3
- Given I have some example <%= generator.send :table_name %>
4
- And <% else %> Given <% end %>I am signed in
2
+ Given I am signed in
@@ -0,0 +1,3 @@
1
+ Background:
2
+ Given I have some example <%= generator.send :table_name %>
3
+ And I am signed in
@@ -10,8 +10,11 @@ class User
10
10
  end
11
11
 
12
12
  def background_steps(action = nil)
13
- @action = action
14
- render File.join('features', 'users', 'background_steps.feature')
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.1
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-08 00:00:00.000000000 Z
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