module Support
  module Files
    def set_file_contents(string)
      write_file(filename, string)
      vim.edit!(filename)
    end

    def file_contents
      IO.read(filename).chop # remove trailing newline
    end

    def assert_file_contents(string)
      file_contents.should eq normalize_string_indent(string)
    end
  end
end

module Support
  module Files
    def set_file_contents(string)
      write_file(filename, string)
      vim.edit!(filename)
    end

    def file_contents
      IO.read(filename).chop # remove trailing newline
    end

    def assert_file_contents(string)
      expect(file_contents).to eq normalize_string_indent(string)
    end
  end
end

Use `expect` syntax with rspec
Use `expect` syntax with rspec
