Skip to content

Commit

Permalink
Merge pull request #39 from HAIL9000/issue/master/HC-91_failing_spec_…
Browse files Browse the repository at this point in the history
…tests_ruby_2.2

(HC-91) Make tests compatible with newer ruby versions
  • Loading branch information
cprice404 authored Oct 18, 2016
2 parents a2c8c2e + 3bf7cdf commit e20784e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/unit/puppet/provider/conf_setting/ruby_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
:path => tmpfile,
} }

def validate_file(expected_content,tmpfile = tmpfile)
tmpcontent = File.read(tmpfile)
expect(File.read(tmpfile)).to eq(expected_content)
def validate_file(expected_content,tmp = tmpfile)
tmpcontent = File.read(tmp)
expect(File.read(tmp)).to eq(expected_content)
end


Expand Down

0 comments on commit e20784e

Please sign in to comment.