From ba97d5ed0f7c52cf8e186d355088d4cec97e605d Mon Sep 17 00:00:00 2001 From: Misty De Meo Date: Thu, 19 Mar 2015 16:29:26 -0700 Subject: [PATCH] Fix tests for rspec 3 rspec's be_false and be_true were removed in rspec 3.0, but `be false` and `be true` have the same effect. --- ansr_dpla/spec/lib/relation/facet_spec.rb | 2 +- ansr_dpla/spec/lib/relation_spec.rb | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ansr_dpla/spec/lib/relation/facet_spec.rb b/ansr_dpla/spec/lib/relation/facet_spec.rb index edd0941..23a9665 100644 --- a/ansr_dpla/spec/lib/relation/facet_spec.rb +++ b/ansr_dpla/spec/lib/relation/facet_spec.rb @@ -74,7 +74,7 @@ fkey = test.facets.keys.first facet = test.facets[fkey] expect(facet).to be_a(Ansr::Facets::FacetField) - expect(test.loaded?).to be_false + expect(test.loaded?).to be false test.facets # make sure we memoized the facet values end end diff --git a/ansr_dpla/spec/lib/relation_spec.rb b/ansr_dpla/spec/lib/relation_spec.rb index 8e26b45..289efbe 100644 --- a/ansr_dpla/spec/lib/relation_spec.rb +++ b/ansr_dpla/spec/lib/relation_spec.rb @@ -136,7 +136,7 @@ def self.table expect(test2).to be_a(Ansr::Relation) @mock_api.should_receive(:items).with(:q => 'kittens').and_return('') test2.load - expect(test.order_values.empty?).to be_false + expect(test.order_values.empty?).to be false end # ActiveRecord::QueryMethods.VALID_UNSCOPING_VALUES => # Set.new([:where, :select, :group, :order, :lock, :limit, :offset, :joins, :includes, :from, :readonly, :having]) @@ -222,9 +222,9 @@ def self.table it 'should be false before and true after' do test = subject.where(q:'kittens') @mock_api.stub(:items).with(:q => 'kittens').and_return('') - expect(test.loaded?).to be_false + expect(test.loaded?).to be false test.load - expect(test.loaded?).to be_true + expect(test.loaded?).to be true end end @@ -245,8 +245,8 @@ def self.table test = subject.where(q:'kittens') @mock_api.should_receive(:items).with(:q => 'kittens').once.and_return(@empty) test.load - expect(test.loaded?).to be_true - expect(test.empty?).to be_true + expect(test.loaded?).to be true + expect(test.empty?).to be true end end