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 1c1c585 commit c0fb949Copy full SHA for c0fb949
spec/integration/rails_5.2.4.1_spec.rb
@@ -152,4 +152,20 @@
152
end
153
154
155
+
156
+ describe 'rails g annotate:install' do
157
+ let(:command) { 'bin/rails g annotate:install' }
158
+ let(:rake_file_path) { 'lib/tasks/auto_annotate_models.rake' }
159
160
+ it 'generates the rake file' do
161
+ Bundler.with_clean_env do
162
+ Dir.chdir RAILS_5_2_APP_PATH do
163
+ full_path = File.expand_path(rake_file_path)
164
+ expect { `#{command}` }.to change { File.exist?(rake_file_path) }.from(false).to(true)
165
166
+ File.delete(full_path)
167
+ end
168
169
170
171
0 commit comments