rr 0.3.4 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
data/CHANGES
CHANGED
data/Rakefile
CHANGED
@@ -15,13 +15,17 @@ task(:spec) do
|
|
15
15
|
run_suite
|
16
16
|
end
|
17
17
|
|
18
|
+
task(:tag_release) do
|
19
|
+
tag_release
|
20
|
+
end
|
21
|
+
|
18
22
|
def run_suite
|
19
23
|
dir = File.dirname(__FILE__)
|
20
24
|
system("ruby #{dir}/examples/example_suite.rb") || raise("Example Suite failed")
|
21
25
|
end
|
22
26
|
|
23
27
|
PKG_NAME = "rr"
|
24
|
-
PKG_VERSION = "0.3.
|
28
|
+
PKG_VERSION = "0.3.5"
|
25
29
|
PKG_FILES = FileList[
|
26
30
|
'[A-Z]*',
|
27
31
|
'*.rb',
|
@@ -57,4 +61,9 @@ end
|
|
57
61
|
Rake::GemPackageTask.new(spec) do |pkg|
|
58
62
|
pkg.need_zip = true
|
59
63
|
pkg.need_tar = true
|
64
|
+
end
|
65
|
+
|
66
|
+
def tag_release
|
67
|
+
dashed_version = PKG_VERSION.gsub('.', '-')
|
68
|
+
`svn cp svn+ssh://rubyforge.org/var/svn/pivotalrb/rr/trunk svn+ssh://rubyforge.org/var/svn/pivotalrb/rr/tags/REL-#{dashed_version} -m 'Version #{PKG_VERSION}'`
|
60
69
|
end
|
@@ -1,6 +1,10 @@
|
|
1
1
|
require "examples/example_helper"
|
2
2
|
|
3
3
|
describe RR, " backtrace tweaking" do
|
4
|
+
it "does not set trim_backtrace" do
|
5
|
+
RR::Space.trim_backtrace.should == false
|
6
|
+
end
|
7
|
+
|
4
8
|
it "hides rr library from the backtrace by default" do
|
5
9
|
output = StringIO.new("")
|
6
10
|
backtrace_tweaker = ::Spec::Runner::QuietBacktraceTweaker.new
|
@@ -1,10 +1,9 @@
|
|
1
|
-
RR::Space.trim_backtrace = true
|
2
|
-
|
3
1
|
module RR
|
4
2
|
module Adapters
|
5
3
|
module TestUnit
|
6
4
|
include RR::Extensions::InstanceMethods
|
7
5
|
def self.included(mod)
|
6
|
+
RR::Space.trim_backtrace = true
|
8
7
|
mod.class_eval do
|
9
8
|
alias_method :setup_without_rr, :setup
|
10
9
|
def setup_with_rr
|
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.3
|
|
3
3
|
specification_version: 1
|
4
4
|
name: rr
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.3.
|
7
|
-
date: 2007-07-
|
6
|
+
version: 0.3.5
|
7
|
+
date: 2007-07-29 00:00:00 -07:00
|
8
8
|
summary: RR (Double Ruby) is a double framework that features a rich selection of double techniques and a terse syntax. http://xunitpatterns.com/Test%20Double.html
|
9
9
|
require_paths:
|
10
10
|
- lib
|