Sha256: 676d1aa7953f628f826283fc6c2cf11e84b5a9c81e4a11c50fc4d16b00eb478e
Contents?: true
Size: 874 Bytes
Versions: 6
Compression:
Stored size: 874 Bytes
Contents
When /^I add Mercury as a gem dependency$/ do append_to_file('Gemfile', %{\ngem "mercury-rails", :path => "#{File.expand_path('../../../', __FILE__)}"\n}) end When "I have created a new rails application" do step %{I reset Bundler environment variable} step %{I successfully run `bundle exec rails new testapp --skip-bundle`} step %{I cd to "testapp"} step %{I add Mercury as a gem dependency} step %{I run `bundle install --local`} end Then /^the file "([^"]*)" should contain:$/ do |file, partial_content| check_file_content(file, partial_content, true) end Then /^should have the migration "([^"]*)"$/ do |migration| in_current_dir do Dir["db/migrate/*_#{migration}"].length.should == 1 end end Then /^should not have the migration "([^"]*)"$/ do |migration| in_current_dir do Dir["db/migrate/*_#{migration}"].length.should == 0 end end
Version data entries
6 entries across 6 versions & 1 rubygems