Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not lock!an ActiveRecord instance #53

Open
alexagranov opened this issue Apr 21, 2016 · 1 comment
Open

Can not lock!an ActiveRecord instance #53

alexagranov opened this issue Apr 21, 2016 · 1 comment

Comments

@alexagranov
Copy link

alexagranov commented Apr 21, 2016

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.

@wbotelhos
Copy link

Hi @alexagranov , since this repository is kind deprecated, I created a gem to do that: https://github.com/wbotelhos/idy

I tested this scenario and it works. I would love your feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants