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