Sha256: 3af52e152197c98aa1b5d400b85f5932aed6bbc2330dbd0f98e927d8ae519fc5
Contents?: true
Size: 763 Bytes
Versions: 1
Compression:
Stored size: 763 Bytes
Contents
require 'nori' Given(/^an aText CSV file at "(.*?)"$/) do |atext_input| Dir.chdir(File.dirname(atext_input)) do FileUtils.cp(File.join(TMP_DIR, 'atext.csv'), 'atext.csv') FileUtils.cp(File.join(TMP_DIR, 'expected-new-textexpander.xml'), 'expected-new-textexpander.xml') FileUtils.cp(File.join(TMP_DIR, 'Settings.textexpander'), '/tmp/expandsync/Dropbox/TextExpander/Settings.textexpander') end end Then(/^"(.*?)" should exist$/) do |file| expect(File).to exist(File.expand_path(file)) end Then(/^"(.*?)" should be the same as "(.*?)"$/) do |file1, file2| parser = Nori.new file1_xml = parser.parse(File.read(File.expand_path(file1))) file2_xml = parser.parse(File.read(File.expand_path(file2))) expect(file1_xml).to eq(file2_xml) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
expandsync-0.1.0 | features/step_definitions/expandsync_steps.rb |