From af2f6a55c745c2a3368f6146f1003c709541c813 Mon Sep 17 00:00:00 2001 From: Mamoru TASAKA 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 --- 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