Sha256: 5d430b81db1e67b5152a994eb6f9fb31ccb03a49313c65b3435c7e4fda6c26ba
Contents?: true
Size: 966 Bytes
Versions: 9
Compression:
Stored size: 966 Bytes
Contents
# Copyright (c) 2012-2013 Stark & Wayne, LLC ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile", __FILE__) require "rubygems" require "bundler" Bundler.setup(:default, :test) $:.unshift(File.expand_path("../../lib", __FILE__)) require "rspec/core" require "cli" # BOSH CLI require "bosh/cli/commands/cf" # "bosh cf COMMAND" commands added to bosh CLI def spec_asset(filename) File.expand_path("../assets/#{filename}", __FILE__) end def files_match(filename, expected_filename) file = File.read(filename) expected_file = File.read(expected_filename) file.should == expected_file end RSpec.configure do |c| c.before(:each) do Bosh::Cli::Config.interactive = false Bosh::Cli::Config.colorize = false Bosh::Cli::Config.output = StringIO.new end c.color_enabled = true end def get_tmp_file_path(content) tmp_file = File.open(File.join(Dir.mktmpdir, "tmp"), "w") tmp_file.write(content) tmp_file.close tmp_file.path end
Version data entries
9 entries across 9 versions & 1 rubygems