Sha256: e317148475f561669eb23996de7ccc578b594900a03171f2740c4e9aa93dab5e
Contents?: true
Size: 623 Bytes
Versions: 5
Compression:
Stored size: 623 Bytes
Contents
require 'rubygems' require 'spec' require 'fileutils' require File.dirname(__FILE__) + '/../lib/picture-safe' require 'command' require 'commands/base' Dir["#{File.dirname(__FILE__)}/../lib/picture-safe/commands/*"].each { |c| require c } def prepare_command(klass) command = klass.new(['--app', 'myapp']) command.stub!(:args).and_return([]) command.stub!(:display) #command.stub!(:psafe).and_return(mock('heroku client', :host => 'heroku.com')) #command.stub!(:extract_app).and_return('myapp') command end module SandboxHelper def bash(cmd) FileUtils.cd(@sandbox) { |d| return `#{cmd}` } end end
Version data entries
5 entries across 5 versions & 1 rubygems