Sha256: c5ba07b6de715856a3c15897605b6faf2813506c3a0c7f1181a6c422e1cad4a8
Contents?: true
Size: 824 Bytes
Versions: 3
Compression:
Stored size: 824 Bytes
Contents
require "oldtime" $spec_dir = File.expand_path("..", __FILE__) $spec_data = File.expand_path("../data", __FILE__) Rc.p.home = Pa("#{$spec_data}/oldtime") Rc.p.homerc = Pa("#{$spec_data}/oldtimerc") Rc.p.logfile = Pa("#{$spec_data}/logfile") RSpec.configure do |config| def capture(stream) begin stream = stream.to_s eval "$#{stream} = StringIO.new" yield result = eval("$#{stream}").string ensure eval("$#{stream} = #{stream.upcase}") end result end alias :silence :capture end module Kernel private def xdescribe(*args, &blk) describe *args do pending "xxxxxxxxx" end end def xcontext(*args, &blk) context *args do pending "xxxxxxxxx" end end def xit(*args, &blk) it *args do pending "xxxxxxxx" end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
oldtime-0.1.3 | spec/spec_helper.rb |
oldtime-0.1.2 | spec/spec_helper.rb |
oldtime-0.1.1 | spec/spec_helper.rb |