Sha256: ad6f8686ce35b6cd56bb797e52f077bb5d05c047f41263df5a8ce60c9309815f

Contents?: true

Size: 437 Bytes

Versions: 3

Compression:

Stored size: 437 Bytes

Contents

require "fileutils"

Given /^a project at "([^\"]*)"$/ do |dirname|
  @target = File.join(PROJECT_ROOT_PATH, "fixtures", dirname)
end

Then /^the file "([^\"]*)" has the contents$/ do |path, contents|
  file_path = File.expand_path(path, @target)
  File.open(file_path, 'w') { |f| f.write(contents) }
  step %Q{the file "#{path}" did change}
end

Then /^the file "([^\"]*)" did change$/ do |path|
  @server_inst.file_did_change(path)
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
middleman-core-3.0.0.alpha.7 lib/middleman-core/step_definitions/middleman_steps.rb
middleman-3.0.0.alpha.6 lib/middleman/step_definitions/middleman_steps.rb
middleman-3.0.0.alpha.5 lib/middleman/step_definitions/middleman_steps.rb