Rebuild for https://fedoraproject.org/wiki/Changes/Ruby_2.2
- Fix for rspec 3
This commit is contained in:
parent
4e5fc05e2f
commit
799cdfe68f
2 changed files with 56 additions and 2 deletions
47
vim-command-t-1.10-support-Rspec-3-style.patch
Normal file
47
vim-command-t-1.10-support-Rspec-3-style.patch
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
From af2f6a55c745c2a3368f6146f1003c709541c813 Mon Sep 17 00:00:00 2001
|
||||
From: Mamoru TASAKA <mtasaka@fedoraproject.org>
|
||||
Date: Sun, 18 Jan 2015 13:20:48 +0900
|
||||
Subject: [PATCH] support Rspec 3 style
|
||||
|
||||
Just change be_true to be_truthy, be_false to be_falsey
|
||||
(works both rspec 3.1.x and 2.14.x)
|
||||
---
|
||||
spec/command-t/watchman/utils_spec.rb | 8 ++++----
|
||||
1 file changed, 4 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/spec/command-t/watchman/utils_spec.rb b/spec/command-t/watchman/utils_spec.rb
|
||||
index 4bb5c4e..80cc899 100644
|
||||
--- a/spec/command-t/watchman/utils_spec.rb
|
||||
+++ b/spec/command-t/watchman/utils_spec.rb
|
||||
@@ -71,11 +71,11 @@ describe CommandT::Watchman::Utils do
|
||||
end
|
||||
|
||||
it 'roundtrips `true` booleans' do
|
||||
- expect(roundtrip(true)).to be_true
|
||||
+ expect(roundtrip(true)).to be_truthy
|
||||
end
|
||||
|
||||
it 'roundtrips `false` booleans' do
|
||||
- expect(roundtrip(false)).to be_false
|
||||
+ expect(roundtrip(false)).to be_falsey
|
||||
end
|
||||
|
||||
it 'roundtrips nil' do
|
||||
@@ -278,12 +278,12 @@ describe CommandT::Watchman::Utils do
|
||||
|
||||
it 'loads boolean `true` values' do
|
||||
input = binary("\x00\x01\x03\x01\x08")
|
||||
- expect(described_class.load(input)).to be_true
|
||||
+ expect(described_class.load(input)).to be_truthy
|
||||
end
|
||||
|
||||
it 'loads boolean `false` values' do
|
||||
input = binary("\x00\x01\x03\x01\x09")
|
||||
- expect(described_class.load(input)).to be_false
|
||||
+ expect(described_class.load(input)).to be_falsey
|
||||
end
|
||||
|
||||
it 'loads nil' do
|
||||
--
|
||||
2.2.1
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue