Skip to content

Commit 358c5e8

Browse files
kennyjsuginoy
authored andcommitted
Added a testcase for rails#6690.
1 parent ca1edd4 commit 358c5e8

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

railties/test/application/rake_test.rb

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,5 +190,16 @@ def test_load_activerecord_base_when_we_use_observers
190190
end
191191
end
192192

193+
def test_copy_templates
194+
Dir.chdir(app_path) do
195+
`bundle exec rake rails:templates:copy`
196+
%w(controller mailer scaffold).each do |dir|
197+
assert File.exists?(File.join(app_path, 'lib', 'templates', 'erb', dir))
198+
end
199+
%w(controller helper scaffold_controller assets).each do |dir|
200+
assert File.exists?(File.join(app_path, 'lib', 'templates', 'rails', dir))
201+
end
202+
end
203+
end
193204
end
194205
end

0 commit comments

Comments
 (0)