Sha256: beaa8e61d3c55d5d91ec4947a160f83fd510bb8fe7bd88c8ce688592d10d2fc5
Contents?: true
Size: 1.35 KB
Versions: 3
Compression:
Stored size: 1.35 KB
Contents
Given /^a shared rails project$/ do # TEARDOWN Dir.chdir ROOT type "rm -rf tmp" # SETUP Dir.chdir ROOT Dir.mkdir 'tmp' type "cp -R fixtures/repo tmp/origin" Dir.chdir 'tmp/origin' do type "git config receive.denyCurrentBranch ignore" File.open ".git/hooks/post-receive", "w" do |f| f.puts <<-BASH #!/bin/bash RAILS_ENV=staging #{ROOT}/bin/bard stage $@ BASH f.chmod 0775 end type "cp config/database.sample.yml config/database.yml" type "git checkout -b integration" end type "cp -R fixtures/repo tmp/submodule" type "cp -R fixtures/repo tmp/submodule2" type "git clone tmp/origin tmp/local" Dir.chdir 'tmp/local' @repo = Grit::Repo.new "." type "grb fetch integration" type "git checkout integration" type "cp config/database.sample.yml config/database.yml" end When /^I type "([^\"]*)"$/ do |command| type command.sub /\b(bard)\b/, "#{ROOT}/bin/bard" end When /^I type "([^\"]*)" on the staging server$/ do |command| Dir.chdir "#{ROOT}/tmp/origin" do When %(I type "#{command}") end end Then /^I should see the fatal error "([^\"]*)"$/ do |error_message| @stderr.should include(error_message) end Then /^I should see the warning "([^\"]*)"$/ do |warning_message| @stderr.should include(warning_message) end Then /^I should see "([^\"]*)"$/ do |message| @stdout.should include(message) end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
bard-0.6.1 | features/step_definitions/global_steps.rb |
bard-0.6.0 | features/step_definitions/global_steps.rb |
bard-0.5.8 | features/step_definitions/global_steps.rb |