File tree Expand file tree Collapse file tree 1 file changed +0
-39
lines changed
spec/generators/decorator Expand file tree Collapse file tree 1 file changed +0
-39
lines changed Original file line number Diff line number Diff line change 88
88
end
89
89
end
90
90
end
91
-
92
- context "with -t=mini_test" do
93
- describe "the generated test" do
94
- subject { file ( "test/decorators/your_model_decorator_test.rb" ) }
95
-
96
- describe "naming" do
97
- before { run_generator %w( YourModel -t=mini_test ) }
98
-
99
- it { should contain "class YourModelDecoratorTest < Draper::TestCase" }
100
- end
101
-
102
- describe "namespacing" do
103
- subject { file ( "test/decorators/namespace/your_model_decorator_test.rb" ) }
104
- before { run_generator %w( Namespace::YourModel -t=mini_test ) }
105
-
106
- it { should contain "class Namespace::YourModelDecoratorTest < Draper::TestCase" }
107
- end
108
- end
109
- end
110
-
111
- context "with -t=mini_test --spec" do
112
- describe "the generated test" do
113
- subject { file ( "test/decorators/your_model_decorator_test.rb" ) }
114
-
115
- describe "naming" do
116
- before { run_generator %w( YourModel -t=mini_test --spec ) }
117
-
118
- it { should contain "describe YourModelDecorator" }
119
- end
120
-
121
- describe "namespacing" do
122
- subject { file ( "test/decorators/namespace/your_model_decorator_test.rb" ) }
123
- before { run_generator %w( Namespace::YourModel -t=mini_test --spec ) }
124
-
125
- it { should contain "describe Namespace::YourModelDecorator" }
126
- end
127
- end
128
- end
129
-
130
91
end
You can’t perform that action at this time.
0 commit comments