mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Initial code to get match data values to output
Expose the match data values through the Expectation class.
This commit is contained in:
parent
0a48b5f447
commit
4e3290ebfe
3 changed files with 24 additions and 2 deletions
|
@ -41,6 +41,15 @@ describe Spectator::Expectations::Expectation do
|
|||
end
|
||||
end
|
||||
|
||||
describe "#values" do
|
||||
it "is the same as the match data values" do
|
||||
value = 42
|
||||
match_data = new_matcher(value).match(new_partial(value))
|
||||
expectation = Spectator::Expectations::Expectation.new(match_data, false)
|
||||
expectation.values.should eq(match_data.values)
|
||||
end
|
||||
end
|
||||
|
||||
describe "#actual_message" do
|
||||
context "with a successful match" do
|
||||
it "equals the matcher's #message" do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue