Skip to content

Conversation

@wkirby
Copy link
Contributor

@wkirby wkirby commented May 16, 2017

No description provided.

private

def private_call
puts "private_call"

Choose a reason for hiding this comment

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

Prefer single-quoted strings when you don't need string interpolation or special symbols.

private

def private_call
puts "private_call"

Choose a reason for hiding this comment

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

Prefer single-quoted strings when you don't need string interpolation or special symbols.

end

def not_call
puts "not call"

Choose a reason for hiding this comment

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

Prefer single-quoted strings when you don't need string interpolation or special symbols.

define_method run_method do |*args|
begin
send(name, *args)
rescue ResultFailureError

Choose a reason for hiding this comment

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

Do not suppress exceptions.


def after_each_method(*)
@@allowed_services.pop
@@allowed_services = nil if @@allowed_services.empty?

Choose a reason for hiding this comment

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

Replace class var @@allowed_services with a class instance var.

# Confirm that this method call is allowed
raise_if_not_allowed

@@allowed_services ||= []

Choose a reason for hiding this comment

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

Replace class var @@allowed_services with a class instance var.


def before_each_method(*)
@deps ||= []
@@allowed_services ||= nil

Choose a reason for hiding this comment

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

Replace class var @@allowed_services with a class instance var.

@coveralls
Copy link

coveralls commented May 16, 2017

Coverage Status

Coverage increased (+0.5%) to 100.0% when pulling 37e672a on refactor-service-wrapping into 7f451b0 on breaking/v0.4.0.

@ncallaway ncallaway merged commit 8e60e82 into breaking/v0.4.0 Feb 28, 2018
@ncallaway ncallaway deleted the refactor-service-wrapping branch February 28, 2018 22:26
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.

5 participants