Skip to content

Commit

Permalink
Fix Rubocop offenses
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Thoman committed Dec 7, 2024
1 parent 5f07e23 commit c8afffa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions spec/active_record/oracle_enhanced/type/binary_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -137,21 +137,21 @@ class ::TestSerializedHashEmployee < ActiveRecord::Base
it "should find serialized NULL BLOB data when queried with nil" do
TestSerializedEmployee.delete_all
TestSerializedEmployee.create!(binary_data: nil)
TestSerializedEmployee.create!(binary_data: { data: 'some data' })
TestSerializedEmployee.create!(binary_data: { data: "some data" })
expect(TestSerializedEmployee.where(binary_data: nil)).to have_attributes(count: 1)
end

it "should find serialized Hash NULL BLOB data when queried with nil" do
TestSerializedHashEmployee.delete_all
TestSerializedHashEmployee.create!(binary_data: nil)
TestSerializedHashEmployee.create!(binary_data: { data: 'some data' })
TestSerializedHashEmployee.create!(binary_data: { data: "some data" })
expect(TestSerializedHashEmployee.where(binary_data: nil)).to have_attributes(count: 1)
end

it "should find serialized Hash NULL BLOB data when queried with {}" do
TestSerializedHashEmployee.delete_all
TestSerializedHashEmployee.create!(binary_data: nil)
TestSerializedHashEmployee.create!(binary_data: { data: 'some data' })
TestSerializedHashEmployee.create!(binary_data: { data: "some data" })
expect(TestSerializedHashEmployee.where(binary_data: {})).to have_attributes(count: 1)
end
end
6 changes: 3 additions & 3 deletions spec/active_record/oracle_enhanced/type/text_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -257,21 +257,21 @@ class ::TestSerializeEmployee < ActiveRecord::Base
it "should find serialized NULL CLOB data when queried with nil" do
TestSerializeEmployee.delete_all
TestSerializeEmployee.create!(comments: nil)
TestSerializeEmployee.create!(comments: { some: 'text' })
TestSerializeEmployee.create!(comments: { some: "text" })
expect(TestSerializeEmployee.where(comments: nil)).to have_attributes(count: 1)
end

it "should find serialized Hash NULL CLOB data when queried with nil" do
TestSerializedHashEmployee.delete_all
TestSerializedHashEmployee.create!(comments: nil)
TestSerializedHashEmployee.create!(comments: { some: 'text' })
TestSerializedHashEmployee.create!(comments: { some: "text" })
expect(TestSerializedHashEmployee.where(comments: nil)).to have_attributes(count: 1)
end

it "should find serialized Hash NULL CLOB data when queried with {}" do
TestSerializedHashEmployee.delete_all
TestSerializedHashEmployee.create!(comments: nil)
TestSerializedHashEmployee.create!(comments: { some: 'text' })
TestSerializedHashEmployee.create!(comments: { some: "text" })
expect(TestSerializedHashEmployee.where(comments: {})).to have_attributes(count: 1)
end
end

0 comments on commit c8afffa

Please sign in to comment.