Sha256: feb30ecca8c1123ed3feadbc4f8a8a0accc9dc8729e991588afa8f5ffaed886c

Contents?: true

Size: 385 Bytes

Versions: 4

Compression:

Stored size: 385 Bytes

Contents

require "pathname"
require "fileutils"

def file
  path = Pathname.new("/tmp/journal.md")
end

Given(/^the file doesn't exist$/) do
  FileUtils.rm_rf(file) if file.exist?
end

Then(/^create the file$/) do
  FileUtils.touch(file)
end

Then(/^reveal the file$/) do
  %x{open -a 'Sublime Text' #{file}}
end

Given(/^the file does exist$/) do
  FileUtils.touch(file) unless file.exist?
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
nikki-0.2.0 features/step_definitions/reveal_file.steps.rb
nikki-0.1.7 features/step_definitions/reveal_file.steps.rb
nikki-0.1.6 features/step_definitions/reveal_file.steps.rb
nikki-0.1.5 features/step_definitions/reveal_file.steps.rb