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

Easy way to stub out aspects? #527

Closed
gerard-kelly-lu opened this issue Feb 16, 2021 · 1 comment
Closed

Easy way to stub out aspects? #527

gerard-kelly-lu opened this issue Feb 16, 2021 · 1 comment

Comments

@gerard-kelly-lu
Copy link

I'm trying to ensure that the correct commands are passed to combine_options in my application (eg. adding text).

However, I won't have ImageMagick available on my CI server so need to stub out any commands I make. Currently when I call combine_options I get an executable not found error.

Thanks in advance for any help.

@janko
Copy link
Member

janko commented Jun 7, 2024

You could override MiniMagick::Tool#call to be a no-op:

class MiniMagick::Tool
  def call(*args)
  end
end

@janko janko closed this as completed Jun 7, 2024
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