Sha256: 4389b98a4948a30a33e2b31988885bb95c4f2387a73aae9ac82446a37eac946f
Contents?: true
Size: 459 Bytes
Versions: 1
Compression:
Stored size: 459 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 all_migrations.should include(migration) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
katapult-0.1.0 | features/step_definitions/file_steps.rb |