diff --git a/src/spectator/expectations/expectation.cr b/src/spectator/expectations/expectation.cr index 1f787dc..63e48cb 100644 --- a/src/spectator/expectations/expectation.cr +++ b/src/spectator/expectations/expectation.cr @@ -1,4 +1,4 @@ -require "../matchers/failed_matched_data" +require "../matchers/failed_match_data" require "../matchers/match_data" require "../source" diff --git a/src/spectator/matchers/failed_match_data.cr b/src/spectator/matchers/failed_match_data.cr index 5855de5..250cf64 100644 --- a/src/spectator/matchers/failed_match_data.cr +++ b/src/spectator/matchers/failed_match_data.cr @@ -1,4 +1,4 @@ -require "./labeled_value" +require "../test_value" require "./match_data" module Spectator::Matchers diff --git a/src/spectator/matchers/match_data_labeled_value.cr b/src/spectator/matchers/match_data_labeled_value.cr deleted file mode 100644 index 2a39095..0000000 --- a/src/spectator/matchers/match_data_labeled_value.cr +++ /dev/null @@ -1,15 +0,0 @@ -module Spectator::Matchers - # A value from match data with a label. - struct MatchDataLabeledValue - # Label tied to the value. - # This annotates what the value is. - getter label : Symbol - - # The actual value from the match data. - getter value : MatchDataValue - - # Creates a new labeled value. - def initialize(@label, @value) - end - end -end diff --git a/src/spectator/matchers/matcher.cr b/src/spectator/matchers/matcher.cr index e9d57bc..d87d8ca 100644 --- a/src/spectator/matchers/matcher.cr +++ b/src/spectator/matchers/matcher.cr @@ -1,6 +1,6 @@ -require "./failed_matched_data" +require "../test_value" +require "./failed_match_data" require "./successful_match_data" -require "./test_value" module Spectator::Matchers # Common base class for all expectation conditions.