spec/support/matchers/have_file_content.rb in vagrant-libvirt-0.11.2 vs spec/support/matchers/have_file_content.rb in vagrant-libvirt-0.12.0
- old
+ new
@@ -43,10 +43,10 @@
# it { expect(file1).to have_file_content(a_string_starting_with 'a') }
# it { expect(files1).to include a_file_having_content(a_string_starting_with 'a') }
# end
RSpec::Matchers.define :have_file_content do |expected|
match do |actual|
- next false unless File.exists?(actual)
+ next false unless File.exist?(actual)
@actual = File.read(actual).chomp
@expected = if expected.is_a? String
expected.chomp
else