mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Fix inconsistent naming for test expressions
This commit is contained in:
parent
2eb51b9c41
commit
4665d5f68d
1 changed files with 2 additions and 2 deletions
|
@ -21,7 +21,7 @@ module Spectator::DSL
|
|||
macro expect(actual, _source_file = __FILE__, _source_line = __LINE__)
|
||||
test_value = ::Spectator::TestValue.new({{actual}}, {{actual.stringify}})
|
||||
source = ::Spectator::Source.new({{_source_file}}, {{_source_line}})
|
||||
::Spectator::Expectations::ExpectationPartial.new(value_actual, source)
|
||||
::Spectator::Expectations::ExpectationPartial.new(test_value, source)
|
||||
end
|
||||
|
||||
# Starts an expectation on a block of code.
|
||||
|
@ -78,7 +78,7 @@ module Spectator::DSL
|
|||
{% end %}
|
||||
|
||||
source = ::Spectator::Source.new({{_source_file}}, {{_source_line}})
|
||||
::Spectator::Expectations::ExpectationPartial.new(block_actual, source)
|
||||
::Spectator::Expectations::ExpectationPartial.new(test_block, source)
|
||||
end
|
||||
|
||||
# Starts an expectation.
|
||||
|
|
Loading…
Reference in a new issue