File: file_helpers.rb

package info (click to toggle)
ruby-shoulda-matchers 7.0.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,652 kB
  • sloc: ruby: 34,046; sh: 280; makefile: 9
file content (19 lines) | stat: -rw-r--r-- 383 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
require_relative 'base_helpers'

module AcceptanceTests
  module FileHelpers
    include BaseHelpers

    def append_to_file(path, content, options = {})
      fs.append_to_file(path, content, options)
    end

    def remove_from_file(path, pattern)
      fs.remove_from_file(path, pattern)
    end

    def write_file(path, content)
      fs.write(path, content)
    end
  end
end