File tree 5 files changed +20
-1
lines changed
5 files changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,12 @@ task :dummy_generate do
42
42
system ( 'touch test/dummy/db/schema.rb' )
43
43
FileUtils . cp 'test/fixtures/database.yml' , 'test/dummy/config/'
44
44
FileUtils . rm_r Dir . glob ( 'test/dummy/test/*' )
45
+
46
+ # rails 6 needs this to be present before start:
47
+ FileUtils . mkdir_p ( 'test/dummy/app/assets/config' )
48
+ FileUtils . mkdir_p ( 'test/dummy/app/assets/javascripts' )
49
+ FileUtils . cp 'test/fixtures/manifest.js' , 'test/dummy/app/assets/config/'
50
+ FileUtils . cp 'test/fixtures/wicked.js' , 'test/dummy/app/assets/javascripts/'
45
51
end
46
52
47
53
desc 'Remove dummy application'
Original file line number Diff line number Diff line change @@ -2,5 +2,6 @@ source "https://rubygems.org"
2
2
3
3
gem 'rdoc'
4
4
gem 'rails', '~> 4.0.0'
5
+ gem 'sqlite3', '~> 1.3.6'
5
6
6
7
gemspec path: '../'
Original file line number Diff line number Diff line change @@ -2,5 +2,6 @@ source 'https://rubygems.org'
2
2
3
3
gem 'rdoc'
4
4
gem 'rails', '~> 4.1.0'
5
+ gem 'sqlite3', '~> 1.3.6'
5
6
6
7
gemspec path: '../'
Original file line number Diff line number Diff line change
1
+ //= link_tree ../images
2
+ //= link wicked.js
3
+ //= link wicked.css
Original file line number Diff line number Diff line change 19
19
File . open ( destination , 'w' ) { |f | f . write ( source ) }
20
20
21
21
# Copy JS file
22
- destination = assets_dir . join ( 'javascripts/wicked.js' )
22
+ js_dir = assets_dir . join ( 'javascripts' )
23
+ Dir . mkdir ( js_dir ) unless File . directory? ( js_dir )
24
+ destination = js_dir . join ( 'wicked.js' )
23
25
source = File . read ( 'test/fixtures/wicked.js' )
24
26
File . open ( destination , 'w' ) { |f | f . write ( source ) }
27
+
28
+ config_dir = assets_dir . join ( 'config' )
29
+ Dir . mkdir ( config_dir ) unless File . directory? ( config_dir )
30
+ source = File . read ( 'test/fixtures/manifest.js' )
31
+ destination = config_dir . join ( 'manifest.js' )
32
+ File . open ( destination , 'w' ) { |f | f . write ( source ) }
25
33
end
You can’t perform that action at this time.
0 commit comments