Skip to content

Can not lock!an ActiveRecord instance #53

Description

@alexagranov

Add this to spec/models/post_spec.rb and it will fail:

describe Post do
  describe "Reloading a record" do
  ....
    context "while locking" do
      it "does not throw an error" do
        expect(lambda { subject.lock! }).to_not raise_error
      end
    end

I have a PR #54 that fixes this but also wanted to leave the issue here formally.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions