features/step_definitions/expandsync_steps.rb in expandsync-0.1.3 vs features/step_definitions/expandsync_steps.rb in expandsync-0.2.0
- old
+ new
@@ -5,11 +5,11 @@
Then(/^"(.*?)" should exist$/) do |file|
expect(File).to exist(File.expand_path(file))
end
Then(/^Settings\.textexpander should be backed up$/) do
- expect(File).to exist("/tmp/expandsync/Dropbox/TextExpander/Settings.textexpander_#{ Time.now.utc.iso8601 }")
+ expect(Dir['/tmp/expandsync/Dropbox/TextExpander/*'].count).to eq(2)
end
Then(/^Settings\.textexpander should not be backed up$/) do
- expect(File).to_not exist("/tmp/expandsync/Dropbox/TextExpander/Settings.textexpander_#{ Time.now.utc.iso8601 }")
+ expect(Dir['/tmp/expandsync/Dropbox/TextExpander/*'].count).to eq(1)
end
\ No newline at end of file