feature_generator.feature
1.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
Feature: Rails controller generator
In order to better do Test-Driven Development with Rails
As a user
I want to generate Shoulda & Factory Girl tests for only RESTful actions I need.
Scenario: Feature generator for new action
Given a Rails app with Cucumber
And the blitz plugin is installed
When I generate a "new" feature for "Posts"
Then a "posts" feature for the "create" scenario should be generated
And a "create posts" step definition should be generated
And a new post page path should be generated
Scenario: Feature generator for create action same as new
Given a Rails app with Cucumber
And the blitz plugin is installed
When I generate a "create" feature for "Posts"
Then a "posts" feature for the "create" scenario should be generated
And a "create posts" step definition should be generated
And a new post page path should be generated
Scenario: Feature generator for edit action
Given a Rails app with Cucumber
And the blitz plugin is installed
When I generate a "edit" feature for "Posts"
Then a "posts" feature for the "edit" scenario should be generated
And a "update posts" step definition should be generated
And a edit post page path should be generated
Scenario: Feature generator for update action same as edit
Given a Rails app with Cucumber
And the blitz plugin is installed
When I generate a "update" feature for "Posts"
Then a "posts" feature for the "update" scenario should be generated
And a "update posts" step definition should be generated
And a edit post page path should be generated