mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Formatting changes
This commit is contained in:
parent
6e012da766
commit
703a791f78
2 changed files with 3 additions and 4 deletions
|
@ -39,7 +39,6 @@ describe Spectator::Expectations::ValueExpectationPartial do
|
||||||
end
|
end
|
||||||
|
|
||||||
describe "#to" do
|
describe "#to" do
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
{% for method in [:to_not, :not_to] %}
|
{% for method in [:to_not, :not_to] %}
|
||||||
|
|
|
@ -78,14 +78,14 @@ module Spectator
|
||||||
# Creates a result instance from captured result information.
|
# Creates a result instance from captured result information.
|
||||||
private def translate_result(result, expectations)
|
private def translate_result(result, expectations)
|
||||||
case (error = result.error)
|
case (error = result.error)
|
||||||
# If no errors occurred, then the example ran successfully.
|
|
||||||
when Nil
|
when Nil
|
||||||
|
# If no errors occurred, then the example ran successfully.
|
||||||
SuccessfulResult.new(self, result.elapsed, expectations)
|
SuccessfulResult.new(self, result.elapsed, expectations)
|
||||||
# If a required expectation fails, then a `ExpectationRailed` exception will be raised.
|
|
||||||
when ExpectationFailed
|
when ExpectationFailed
|
||||||
|
# If a required expectation fails, then a `ExpectationRailed` exception will be raised.
|
||||||
FailedResult.new(self, result.elapsed, expectations, error)
|
FailedResult.new(self, result.elapsed, expectations, error)
|
||||||
# Any other exception that is raised is unexpected and is an errored result.
|
|
||||||
else
|
else
|
||||||
|
# Any other exception that is raised is unexpected and is an errored result.
|
||||||
ErroredResult.new(self, result.elapsed, expectations, error)
|
ErroredResult.new(self, result.elapsed, expectations, error)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue