features/2.run.feature in expandsync-0.1.0 vs features/2.run.feature in expandsync-0.1.1

- old
+ new

@@ -1,10 +1,25 @@ Feature: Run - The user runs the app and it outputs - the correct files in the correct locations + As a user, when I run the app (w/ or w/o flags), I + should have the correct content be placed in the correct + files. Scenario: Run with no flags - Given an aText CSV file at "/tmp/atext.csv" - When I successfully run `expandsync /tmp/atext.csv` + Given a file located at "/tmp/expandsync/input/atext.csv" + When I successfully run `expandsync /tmp/expandsync/input/atext.csv` Then "~/aText-snippets.csv" should exist And "~/Dropbox/TextExpander/Settings.textexpander" should exist - And "~/Dropbox/TextExpander/Settings.textexpander.bak" should exist + And Settings.textexpander should be backed up + + Scenario: Run with -a flag + Given a file located at "/tmp/expandsync/input/atext.csv" + When I run `expandsync -a /tmp/expandsync/output/aText-output.csv /tmp/expandsync/input/atext.csv` + Then "/tmp/expandsync/output/aText-output.csv" should exist + And "~/Dropbox/TextExpander/Settings.textexpander" should exist + And Settings.textexpander should be backed up + + Scenario: Run with -n flags + Given a file located at "/tmp/expandsync/input/atext.csv" + When I successfully run `expandsync -n /tmp/expandsync/input/atext.csv` + Then "~/aText-snippets.csv" should exist + And "~/Dropbox/TextExpander/Settings.textexpander" should exist + And Settings.textexpander should not be backed up