Sha256: d9cf898106262e04ad8fc9d155162bdf06575cc4ed8827444701eeb1ff3585dc

Contents?: true

Size: 534 Bytes

Versions: 3

Compression:

Stored size: 534 Bytes

Contents

# Put your step definitions here

Then /^the alias file should be empty\.$/ do
    File.zero? "#{ENV['HOME']}/.alias"
end

Then /^the alias "(.*?)" should be in the alias file\.$/ do |arg1|
  worked = false
  File.foreach("#{ENV['HOME']}/.alias") do |line|
    worked = true if line.start_with? "alias #{arg1}"
  end
end

Then /^the alias "(.*?)" should no longer be in the alias file\.$/ do |arg1|
    worked = true
   File.foreach("#{ENV['HOME']}/.alias") do |line|
    worked = false if line.start_with? "alias #{arg1}"
  end 
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
aka-0.5.4 features/step_definitions/aka_steps.rb
aka-0.5.2 features/step_definitions/aka_steps.rb
aka-0.5.1 features/step_definitions/aka_steps.rb