1 |
flameeyes 11/02/02 14:12:45 |
2 |
|
3 |
Added: rspec-core-2.4.0-tests.patch |
4 |
Log: |
5 |
Use upstream specs fixes (as the custom one didn't work with Ruby 1.9) and add ruby19 support. |
6 |
|
7 |
(Portage version: 2.2.0_alpha19/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 dev-ruby/rspec-core/files/rspec-core-2.4.0-tests.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/rspec-core/files/rspec-core-2.4.0-tests.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/rspec-core/files/rspec-core-2.4.0-tests.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: rspec-core-2.4.0-tests.patch |
16 |
=================================================================== |
17 |
From 22bd1e10147d43c4055cbb1b1f95872b84d88fdf Mon Sep 17 00:00:00 2001 |
18 |
From: =?UTF-8?q?Diego=20Elio=20Petten=C3=B2?= <flameeyes@×××××.com> |
19 |
Date: Wed, 2 Feb 2011 14:53:16 +0100 |
20 |
Subject: [PATCH] Squashed commit of the following: |
21 |
|
22 |
commit 23727ceecc0ac619acb31bf5a0c850eb60a443b7 |
23 |
Author: David Chelimsky <dchelimsky@×××××.com> |
24 |
Date: Sun Jan 16 16:42:48 2011 -0600 |
25 |
|
26 |
sort rather than match on unsorted content |
27 |
|
28 |
commit cdb8e160f1659dd148f56e12b5acc174444dda3c |
29 |
Author: David Chelimsky <dchelimsky@×××××.com> |
30 |
Date: Sun Jan 16 10:34:01 2011 -0600 |
31 |
|
32 |
loosen constraint on outcome in example that returns an array |
33 |
|
34 |
- Closes #278. |
35 |
--- |
36 |
spec/rspec/core/rake_task_spec.rb | 6 +++--- |
37 |
1 files changed, 3 insertions(+), 3 deletions(-) |
38 |
|
39 |
diff --git a/spec/rspec/core/rake_task_spec.rb b/spec/rspec/core/rake_task_spec.rb |
40 |
index 6ba16af..1bdf50a 100644 |
41 |
--- a/spec/rspec/core/rake_task_spec.rb |
42 |
+++ b/spec/rspec/core/rake_task_spec.rb |
43 |
@@ -144,16 +144,16 @@ module RSpec::Core |
44 |
@task = RakeTask.new do |t| |
45 |
t.pattern = File.join(@tmp_dir, "*spec.rb") |
46 |
end |
47 |
- ["first_spec.rb", "second_\"spec.rb", "third_'spec.rb"].each do |file_name| |
48 |
+ ["first_spec.rb", "second_\"spec.rb", "third_\'spec.rb"].each do |file_name| |
49 |
FileUtils.touch(File.join(@tmp_dir, file_name)) |
50 |
end |
51 |
end |
52 |
|
53 |
it "escapes the quotes" do |
54 |
- @task.__send__(:files_to_run).should eq([ |
55 |
+ @task.__send__(:files_to_run).sort.should eq([ |
56 |
File.join(@tmp_dir, "first_spec.rb"), |
57 |
File.join(@tmp_dir, "second_\\\"spec.rb"), |
58 |
- File.join(@tmp_dir, "third_\\'spec.rb") |
59 |
+ File.join(@tmp_dir, "third_\\\'spec.rb") |
60 |
]) |
61 |
end |
62 |
end |
63 |
-- |
64 |
1.7.4 |