Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/scientist/experiment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def clean_value(value)
# and return true or false.
#
# Returns the block.
def compare(*args, &block)
def compare(*_args, &block)
@_scientist_comparator = block
end

Expand All @@ -140,7 +140,7 @@ def compare(*args, &block)
# and return true or false.
#
# Returns the block.
def compare_errors(*args, &block)
def compare_errors(*_args, &block)
@_scientist_error_comparator = block
end

Expand Down Expand Up @@ -202,7 +202,7 @@ def raise_with(exception)
# Called when an exception is raised while running an internal operation,
# like :publish. Override this method to track these exceptions. The
# default implementation re-raises the exception.
def raised(operation, error)
def raised(_operation, error)
raise error
end

Expand Down
4 changes: 2 additions & 2 deletions test/scientist/experiment_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def ex.enabled?
true
end

def ex.publish(result)
def ex.publish(_result)
raise "boomtown"
end

Expand All @@ -164,7 +164,7 @@ def ex.publish(result)
end

it "reports publishing errors" do
def @ex.publish(result)
def @ex.publish(_result)
raise "boomtown"
end

Expand Down