Skip to content

Commit 5b65141

Browse files
committed
Rakefile
1 parent 18e5459 commit 5b65141

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

Rakefile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,13 @@ task :test do
4343
system 'jruby --dev test/create_test.rb'
4444
system 'jruby --dev test/color_group_test.rb'
4545
home = File.expand_path('~')
46-
config = File.exist?(format('%s/.jruby_art/config.yml', home))
46+
FLF = '%<home>s/.jruby_art/config.yml'
47+
config = File.exist?(format(FLF, home: home))
4748
if config
4849
ruby 'test/k9_run_test.rb'
4950
else
50-
WNF = 'You should create %s/.jruby_art/config.yml to run sketch tests'
51-
warn format(WNF, home)
51+
WNF = 'Create a config %<home>s/.jruby_art/config.yml to run sketch tests'
52+
warn format(WNF, home: home)
5253
end
5354
end
5455

0 commit comments

Comments
 (0)