features/support/step_definitions/dm_steps.rb in docman-0.0.2 vs features/support/step_definitions/dm_steps.rb in docman-0.0.3

- old
+ new

@@ -3,19 +3,19 @@ # clean_current_dir # run "build.rb #{target} #{state}" # end # end # -# When(/^I store bump version from file "(.*?)"$/) do |file| -# ENV['DM_BUMPED_VERSION'] = IO.read(file) -# end -# -# When(/^I change repo state to last bumped tag for "(.*?)" version$/) do |state| -# version = ENV["DM_BUMPED_VERSION"] -# run "state.sh tag #{version} #{state}" -# end -# -# Then(/^the file "(.*?)" should contain last bumped tag$/) do |file| -# version = ENV["DM_BUMPED_VERSION"] -# puts "Last bumped tag: #{version}" -# prep_for_fs_check { expect(IO.read(file)).to eq version } -# end +When(/^I store bump version from file "(.*?)"$/) do |file| + ENV['DM_BUMPED_VERSION'] = IO.read(file) +end + +When(/^I change repo state to last bumped tag for "(.*?)" version$/) do |state| + version = ENV["DM_BUMPED_VERSION"] + run "state.sh tag #{version} #{state}" +end + +Then(/^the file "(.*?)" should contain last bumped tag$/) do |file| + version = ENV["DM_BUMPED_VERSION"] + puts "Last bumped tag: #{version}" + prep_for_fs_check { expect(IO.read(file)).to eq version } +end