Sha256: 1432d6846db9ca3822464c97983f30ba66b4349904917830bd38db8db07a1188
Contents?: true
Size: 463 Bytes
Versions: 1
Compression:
Stored size: 463 Bytes
Contents
When /^I replace "(.*?)" with "(.*?)" inside "(.*?)"$/ do |a, b, path| in_current_dir do content = File.read(path) content.gsub! a, b File.open(path, 'w') { |file| file.puts(content) } end end Then /^there should be a migration with:$/ do |migration| migrations_path = File.join(current_dir, 'db', 'migrate', '*.rb') all_migrations = Dir.glob(migrations_path).map(&File.method(:read)).join expect(all_migrations).to include(migration) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
katapult-0.1.1 | features/step_definitions/file_steps.rb |