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 c9e85d3 commit c83e452Copy full SHA for c83e452
spec/integration/rails_5.2.4.1_spec.rb
@@ -152,4 +152,18 @@
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
+ end
166
167
168
169
0 commit comments