18 May '12, 5am

Jeff's Blog - Testing capistrano recipes with cucumber:

Jeff's Blog - Testing capistrano recipes with cucumber:

Given /^a an app$/ do # Create the git repo FileUtils.mkdir_p @repo_dir Dir.chdir(@repo_dir) do system "git --bare init" end # Create and capify the dummy app, and push it to the local repo FileUtils.mkdir_p @app_dir Dir.chdir(@app_dir) do [ %Q{git init}, %Q{mkdir config}, %Q{capify .}, %Q{git add .}, %Q{git commit -m "first commit"}, %Q{git remote add origin file://#{@repo_dir}}, %Q{git push origin master} ].each do |command| system command end end # Write a custom deploy file to the app, using an ERB template deploy_variables = { :deploy_to => File.join(@test_files_dir, "deployed"), :repository => @repo_dir, :git_executable => `which git`.strip, :logged_in_user => Etc.getlogin } template_path = File.expand_path(File.join(__FILE__, "..", "..", "templates", "deploy.erb")) compiled_template = ERB.new(File.read(template_path)).result(binding) File.open(File.join(@app_dir, "c...

Full article: http://pivotallabs.com/users/jdean/blog/articles/763-test...

Tweets

Cucumber – Potato Stir Fry: This is a delicious combination of potato and cucumber which is very easy to prepa...

Cucumber – Potato Stir Fry: This is a delicious...

trendyrelish.com 21 May '12, 8am

Wash and peel cucumbers and potatoes. Then chop them into small pieces. Keep aside. Heat oil in a pan and add mustard seed...

Innovative #underwater #turbine completes initi...

eurekamagazine.co.uk 18 May '12, 10am

An underwater turbine that is set to be used in Scotland's first and only tidal power project has successfully completed a...

Testing efficiently becoming an increasing challenge for design engineers

Testing efficiently becoming an increasing chal...

newelectronics.co.uk 19 May '12, 6pm

The processes associated with testing fall into three interacting groups: organisation; test management; and test. Organis...