view_generator.feature
1.42 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
Feature: Rails view generator
In order to do Test-Driven Development with Rails
As a developer
I want to generate a view to make a functional test pass
Scenario: View generator for new action
Given a Rails app
And the blitz plugin is installed
When I generate a "new" view for "Posts"
Then a Formtastic "new" view for "posts" should be generated
Scenario: View generator for new action
Given a Rails app
And the blitz plugin is installed
When I generate a Post model with title, body, and User
And I generate a "new" view for "Posts"
Then a Formtastic "new" view for "posts" should be generated with fields
Scenario: View generator for new action
Given a Rails app
And the blitz plugin is installed
When I generate a Post model with title, body, and User
And I generate a "new" view for "Posts" with the empty option
Then an empty "new" view for "posts" should be generated
Scenario: View generator for index action
Given a Rails app
And the blitz plugin is installed
When I generate a "index" view for "Posts"
Then a non-model-reflected "index" view for "posts" should be generated
Scenario: View generator for index action
Given a Rails app
And the blitz plugin is installed
When I generate a Post model with title, body, and User
And I generate a "index" view for "Posts"
Then a model-reflected "index" view for "posts" should be generated