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

Cloning HealthBit does not clone configuration #8

Closed
greena13 opened this issue Jun 17, 2021 · 1 comment
Closed

Cloning HealthBit does not clone configuration #8

greena13 opened this issue Jun 17, 2021 · 1 comment

Comments

@greena13
Copy link

HealthBit version: 0.1.8

When doing the following:

HealthBit.configure do |c|
  c.success_text = 'Custom message.'
end

CheckA = HealthBit.clone
Check B = HealthBit.clone

The configure block is ignored. To get it to work you must instead do:

CheckA = HealthBit.clone
Check B = HealthBit.clone

CheckA.configure do |c|
  c.success_text = 'Custom message.'
end

CheckB.configure do |c|
  c.success_text = 'Custom message.'
end

I'd expect the former to clone the configuration from HealthBit so you can DRY up common configuration.

@shlima
Copy link
Owner

shlima commented Jul 14, 2021

This is expected behaviour by design

@shlima shlima closed this as completed Jul 14, 2021
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