Sha256: fae792b0165e8a03208b23a38b00424516a983dec9df10d3f6ab659a8abc85f9
Contents?: true
Size: 607 Bytes
Versions: 2
Compression:
Stored size: 607 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 When /^I close the stdin stream$/ do @interactive.stdin.close() end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
aka-0.6.0 | features/step_definitions/aka_steps.rb |
aka-0.5.8 | features/step_definitions/aka_steps.rb |