Sha256: 7b04b7dd96e45e6133f9570f2ed5bd6b0084bbd28a94b27073c4a8091308663c
Contents?: true
Size: 1.21 KB
Versions: 8
Compression:
Stored size: 1.21 KB
Contents
SPEC_ROOT = File.dirname(__FILE__).freeze require "rspec" require "cfoundry" require "cfoundry/test_support" require "cf" require "cf/test_support" require "webmock" require "ostruct" require "fakefs/safe" require "blue-shell" INTEGRATE_WITH = ENV["INTEGRATE_WITH"] || "default" TRAVIS_BUILD_ID = ENV["TRAVIS_BUILD_ID"] OriginalFile = File class FakeFS::File def self.fnmatch(*args, &blk) OriginalFile.fnmatch(*args, &blk) end end def cf_bin cf = File.expand_path("#{SPEC_ROOT}/../bin/cf.dev") if INTEGRATE_WITH != 'default' "rvm #{INTEGRATE_WITH}@cf do #{cf}" else cf end end Dir[File.expand_path('../support/**/*.rb', __FILE__)].each do |file| require file end RSpec.configure do |c| c.include Fake::FakeMethods c.include BlueShell::Matchers c.mock_with :rr if RUBY_VERSION =~ /^1\.8\.\d/ c.filter_run_excluding :ruby19 => true end c.include FakeHomeDir c.include CliHelper c.include InteractHelper c.include ConfigHelper c.include FeaturesHelper c.before(:all) do WebMock.disable_net_connect! end c.before do CF::CLI.send(:class_variable_set, :@@client, nil) end end def name_list(xs) if xs.empty? "none" else xs.collect(&:name).join(", ") end end
Version data entries
8 entries across 8 versions & 1 rubygems