spec/support/integration.rb in engineyard-serverside-1.5.24 vs spec/support/integration.rb in engineyard-serverside-1.5.25

- old
+ new

@@ -4,10 +4,12 @@ def initialize(*) super @infos = [] @debugs = [] @commands = [] + @gemfile_contents = nil + @lockfile_contents = nil end # stfu def info(msg) @infos << msg @@ -82,10 +84,18 @@ def mock_services_setup!(value) @mock_services_setup_command = value end + def mock_gemfile_contents(gemfile_contents) + @gemfile_contents = gemfile_contents + end + + def mock_lockfile_contents(lockfile_contents) + @lockfile_contents = lockfile_contents + end + end module EY::Serverside::Strategies::IntegrationSpec module Helpers @@ -117,31 +127,34 @@ def short_log_message(revision) "FONDLED THE CODE" end def gemfile_contents - <<-EOF + @gemfile_contents || <<-EOF source :rubygems gem 'rake' gem 'pg' +gem 'ey_config' EOF end # Generated using Bundler v1.0.21 def lockfile_contents - <<-EOF + @lockfile_contents || <<-EOF GEM remote: http://rubygems.org/ specs: pg (0.11.0) rake (0.9.2.2) + ey_config (0.0.1) PLATFORMS ruby DEPENDENCIES pg rake + ey_config EOF end def generate_gemfile_in(dir) `echo "this is my file; there are many like it, but this one is mine" > #{dir}/file`