Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,8 @@ def raise_make_transaction_rollback
expect(@employee.first_name).to eq("First")
end

it "should not update record if nothing is changed and partial writes are enabled" do
TestEmployee.partial_writes = true
it "should not update record if nothing is changed and partial updates are enabled" do
TestEmployee.partial_updates = true
@employee = TestEmployee.create(
first_name: "First",
last_name: "Last",
Expand All @@ -223,8 +223,8 @@ def raise_make_transaction_rollback
expect(@employee.version).to eq(1)
end

it "should update record if nothing is changed and partial writes are disabled" do
TestEmployee.partial_writes = false
it "should update record if nothing is changed and partial updates are disabled" do
TestEmployee.partial_updates = false
@employee = TestEmployee.create(
first_name: "First",
last_name: "Last",
Expand Down Expand Up @@ -316,7 +316,7 @@ def raise_make_transaction_rollback
end

it "should log update record" do
(TestEmployee.partial_writes = false) rescue nil
(TestEmployee.partial_updates = false) rescue nil
@employee = TestEmployee.create(
first_name: "First",
last_name: "Last",
Expand Down