Skip to content

Fix for Active Record callbacks - #139

Closed
fabn wants to merge 31 commits into
assembler:masterfrom
fabn:fix-callbacks
Closed

fabn wants to merge 31 commits into
assembler:masterfrom
fabn:fix-callbacks

Conversation

@fabn

@fabn fabn commented Sep 24, 2016

Copy link
Copy Markdown

Will solve #138

@orlando

orlando commented Dec 26, 2016

Copy link
Copy Markdown
Collaborator

@fabn can you add a test for this?. Testing is something we need to improve. If it's not that difficult, it will be great to have some test coverage of this code

fabn added 27 commits October 2, 2017 21:58
This conversion is done by Transpec 3.3.0 with the following command:
    transpec -f

* 38 conversions
    from: obj.should
      to: expect(obj).to

* 19 conversions
    from: == expected
      to: eq(expected)

* 6 conversions
    from: obj.should_receive(:message)
      to: expect(obj).to receive(:message)

* 4 conversions
    from: it { should_not ... }
      to: it { is_expected.not_to ... }

* 2 conversions
    from: =~ /pattern/
      to: match(/pattern/)

* 2 conversions
    from: it { should ... }
      to: it { is_expected.to ... }

* 1 conversion
    from: obj.should_not_receive(:message)
      to: expect(obj).not_to receive(:message)

* 1 conversion
    from: obj.stub(:message)
      to: allow(obj).to receive(:message)

For more details: https://github.com/yujinakayama/transpec#supported-conversions
…ng in travis until I found a working config for headless testing
fabn added a commit to fabn/attachinary that referenced this pull request Oct 3, 2017
@fabn

fabn commented Oct 19, 2017

Copy link
Copy Markdown
Author

@orlando I did that and much more but I din't receive any feedback. Could you please take a look into this?

Thanks.

@orlando

orlando commented Oct 19, 2017

Copy link
Copy Markdown
Collaborator

@fabn Awesome!. I'll take a look today.

Thank you for your patience

@sharq1

sharq1 commented Feb 1, 2021

Copy link
Copy Markdown

@orlando a merge, maybe?

//= require jquery.ui.widget
//= require jquery.iframe-transport
//= require jquery.fileupload
//= require bootstrap-sprockets

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fabn I don't think we should introduce this dependency, let's keep the dummy app as barebones as possible

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@orlando that's a devo dependency that is not pulled when you add this gem as dependency. If I remember it's used in integration tests as js library to write some end to end tests but honestly I wrote this long time ago... I think is good to have e2e specs and dev dependency won't hurt gem itself.

@orlando

orlando commented Feb 24, 2021

Copy link
Copy Markdown
Collaborator

Hey @sharq1,

Sorry, I used to use this library in production but not anymore. I don't think I can review this change since is so big and includes things that are not necessary to have in the main repo (example bootstrap-sprockets)

@fabn

fabn commented Feb 24, 2021

Copy link
Copy Markdown
Author

I'm still using this gem (my fork) in a couple of production projects on rails 5.2 but now that activestorage is out and cloudinary support that natively I don't know if is still worth to maintain this gem. However if you're interested in merging this I can collaborate in my spare time.

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

Successfully merging this pull request may close these issues.

3 participants