Fix inconsistent naming for test expressions

This commit is contained in:
Michael Miller 2019-08-08 17:08:38 -06:00
parent 2eb51b9c41
commit 4665d5f68d

View file

@ -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.