Skip to content
This repository has been archived by the owner on Aug 20, 2024. It is now read-only.

Commit

Permalink
fix-up specs now that JAVA_OPTS is multi-line
Browse files Browse the repository at this point in the history
  • Loading branch information
kares committed Jul 1, 2014
1 parent 97bfd71 commit 959abea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/trinidad_init_services/configuration_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@

init_file_content = File.read(init_file)

java_opts = init_file_content.match(/JAVA_OPTS=(.*)$/)
java_opts = init_file_content.match(/JAVA_OPTS="(.*?)"/m)
expect( java_opts ).to_not be nil
expect( java_opts = java_opts[1] ).to_not be nil
expect( java_opts ).to include '-XX:+UseCodeCacheFlushing'
Expand All @@ -72,7 +72,7 @@

init_file_content = File.read(init_file)

java_opts = init_file_content.match(/JAVA_OPTS=(.*)$/)
java_opts = init_file_content.match(/JAVA_OPTS="(.*?)"/m)
expect( java_opts ).to_not be nil
expect( java_opts = java_opts[1] ).to_not be nil
expect( java_opts ).to include '-XX:+UseCodeCacheFlushing'
Expand All @@ -90,7 +90,7 @@

init_file_content = File.read(init_file)

java_opts = init_file_content.match(/JAVA_OPTS=(.*)$/)[1]
java_opts = init_file_content.match(/JAVA_OPTS="(.*?)"/m)[1]
expect( java_opts ).to_not be nil
expect( code_cache_size = java_opts.match(/-XX:ReservedCodeCacheSize=(.*)m/)[1] ).to_not be nil
if java_version =~ /^1\.(6|7)/
Expand Down

0 comments on commit 959abea

Please sign in to comment.