Sha256: 609b45c4b597e6e21fce47d3e4d52658dd93b179005fefd8b1e259ba61baa335
Contents?: true
Size: 981 Bytes
Versions: 3
Compression:
Stored size: 981 Bytes
Contents
testdir = File.dirname(__FILE__) $:.unshift testdir unless $LOAD_PATH.include?(testdir) require 'rubygems' if RUBY_VERSION < '1.9' require 'bundler/setup' require 'stringio' require 'rack/test' require 'template/helpers' require 'frank' require 'frank/publish/base' module Kernel def capture_stdout out = StringIO.new $stdout = out yield return out ensure $stdout = STDOUT end end module Frank module Spec module Helpers BIN_DIR = File.join(File.dirname(File.dirname(__FILE__)), 'bin') def frank(command, *args) result = system "#{BIN_DIR}/frank #{command} #{args * ' '}" if $?.success? result else exit 1 end end end end end module Frank module Publish def self.ok_message str, prefix = ""; end def self.err_message str, prefix = ""; end end end RSpec.configure do |config| ## # Use Mocha to mock with RSpec config.mock_with :mocha end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
frank-1.0.12 | spec/spec_helper.rb |
frank-1.0.11 | spec/spec_helper.rb |
frank-1.0.10 | spec/spec_helper.rb |