Sha256: 49060d5f4b3fa8e49568df31bd3129af1f127e19f05c1a2b966cb8d93104a432

Contents?: true

Size: 287 Bytes

Versions: 5

Compression:

Stored size: 287 Bytes

Contents

module UtilMacro
  def parse_yaml(yaml)
    parser = I18nFlow::Parser.new(yaml)
    parser.parse!
    parser.root_proxy
  end

  def create_file(path, content)
    FakeFS::FakeFile.new.tap do |file|
      file.content = content
      FakeFS::FileSystem.add(path, file)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
i18n_flow-0.2.3 spec/support/util_macro.rb
i18n_flow-0.2.2 spec/support/util_macro.rb
i18n_flow-0.2.1 spec/support/util_macro.rb
i18n_flow-0.2.0 spec/support/util_macro.rb
i18n_flow-0.1.0 spec/support/util_macro.rb