We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
rails g annotate:install
1 parent c0fb949 commit ad0aa89Copy full SHA for ad0aa89
spec/integration/rails_6.0.2.1_spec.rb
@@ -167,4 +167,20 @@
167
end
168
169
170
+
171
+ describe 'rails g annotate:install' do
172
+ let(:command) { 'bin/rails g annotate:install' }
173
+ let(:rake_file_path) { 'lib/tasks/auto_annotate_models.rake' }
174
175
+ it 'generates the rake file' do
176
+ Bundler.with_clean_env do
177
+ Dir.chdir RAILS_6_0_APP_PATH do
178
+ full_path = File.expand_path(rake_file_path)
179
+ expect { `#{command}` }.to change { File.exist?(rake_file_path) }.from(false).to(true)
180
181
+ File.delete(full_path)
182
+ end
183
184
185
186
0 commit comments