functional_test_generator.feature
2.25 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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: Functional test generator for index action
Given a Rails app
And the blitz plugin is installed
When I generate a "Posts" functional test with "index" action
Then a standard "index" functional test for "posts" should be generated
Scenario: Functional test generator for new action
Given a Rails app
And the blitz plugin is installed
When I generate a "Posts" functional test with "new" action
Then a standard "new" functional test for "posts" should be generated
Scenario: Functional test generator for create action
Given a Rails app
And the blitz plugin is installed
When I generate a "Posts" functional test with "create" action
Then a standard "create" functional test for "posts" should be generated
Scenario: Functional test generator for create action when Cucumber is installed
Given a Rails app with Cucumber
And the blitz plugin is installed
When I generate a "Posts" functional test with "create" action
Then a standard "create" functional test for "posts" should be generated
Scenario: Functional test generator for show action
Given a Rails app
And the blitz plugin is installed
When I generate a "Posts" functional test with "show" action
Then a standard "show" functional test for "posts" should be generated
Scenario: Functional test generator for edit action
Given a Rails app
And the blitz plugin is installed
When I generate a "Posts" functional test with "edit" action
Then a standard "edit" functional test for "posts" should be generated
Scenario: Functional test generator for update action
Given a Rails app
And the blitz plugin is installed
When I generate a "Posts" functional test with "update" action
Then a standard "update" functional test for "posts" should be generated
Scenario: Functional test generator for destroy action
Given a Rails app
And the blitz plugin is installed
When I generate a "Posts" functional test with "destroy" action
Then a standard "destroy" functional test for "posts" should be generated