Skip to content

Commit

Permalink
one of many
Browse files Browse the repository at this point in the history
Signed-off-by: Hermann Mayer <[email protected]>
  • Loading branch information
Jack12816 committed Jan 30, 2025
1 parent 47cbdbb commit 2f46e00
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions spec/boltless/result_row_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,12 @@
end

it 'includes the values' do
expect(action).to include('values=[{:name=>"Klaus"}]')
expect(action).to include(/values=\[{:?name(=>|: )"Klaus"}\]/)
end

it 'includes the meta' do
expect(action).to \
include('meta=[{:id=>146, :type=>"node", :deleted=>false}]')
parts = [':?id(=>|: )146', ':?type(=>|: )"node"', ':?deleted(=>|: )false']
expect(action).to include(/meta=\[{#{parts.join(', ')}}\]/)
end

it 'includes the graph' do
Expand Down Expand Up @@ -143,18 +143,18 @@
let(:input) { raw_result_fixture(:with_graph_result) }

it 'includes the graph (key)' do
expect(action).to include('graph={:nodes=>')
expect(action).to include(/graph={:?nodes(=>|: )/)
end

it 'includes the graph (nodes)' do
expect(action).to \
include('[{:id=>"149", :labels=>["User"], ' \
':properties=>{:name=>"Kalle"}}]')
parts = [':?id(=>|: )"149"', ':?labels(=>|: )\["User"\]',
':?properties(=>|: ){:?name(=>|: )"Kalle"}']
expect(action).to include(/\[{#{parts.join(', ')}}\]/)
end

it 'includes the graph (relationships)' do
expect(action).to \
include(':relationships=>[]')
include(/:?relationships(=>|: )\[\]/)
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion spec/boltless/result_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
end

it 'includes the stats' do
expect(action).to include('stats={:contains_updates=>true')
expect(action).to include(/stats={:?contains_updates(=>|: )true/)
end
end

Expand Down

0 comments on commit 2f46e00

Please sign in to comment.