|
100 | 100 | end
|
101 | 101 |
|
102 | 102 | it 'includes the values' do
|
103 |
| - expect(action).to include('values=[{:name=>"Klaus"}]') |
| 103 | + expect(action).to include(/values=\[{:?name(=>|: )"Klaus"}\]/) |
104 | 104 | end
|
105 | 105 |
|
106 | 106 | it 'includes the meta' do
|
107 |
| - expect(action).to \ |
108 |
| - include('meta=[{:id=>146, :type=>"node", :deleted=>false}]') |
| 107 | + parts = [':?id(=>|: )146', ':?type(=>|: )"node"', ':?deleted(=>|: )false'] |
| 108 | + expect(action).to include(/meta=\[{#{parts.join(', ')}}\]/) |
109 | 109 | end
|
110 | 110 |
|
111 | 111 | it 'includes the graph' do
|
|
143 | 143 | let(:input) { raw_result_fixture(:with_graph_result) }
|
144 | 144 |
|
145 | 145 | it 'includes the graph (key)' do
|
146 |
| - expect(action).to include('graph={:nodes=>') |
| 146 | + expect(action).to include(/graph={:?nodes(=>|: )/) |
147 | 147 | end
|
148 | 148 |
|
149 | 149 | it 'includes the graph (nodes)' do
|
150 |
| - expect(action).to \ |
151 |
| - include('[{:id=>"149", :labels=>["User"], ' \ |
152 |
| - ':properties=>{:name=>"Kalle"}}]') |
| 150 | + parts = [':?id(=>|: )"149"', ':?labels(=>|: )\["User"\]', |
| 151 | + ':?properties(=>|: ){:?name(=>|: )"Kalle"}'] |
| 152 | + expect(action).to include(/\[{#{parts.join(', ')}}\]/) |
153 | 153 | end
|
154 | 154 |
|
155 | 155 | it 'includes the graph (relationships)' do
|
156 | 156 | expect(action).to \
|
157 |
| - include(':relationships=>[]') |
| 157 | + include(/:?relationships(=>|: )\[\]/) |
158 | 158 | end
|
159 | 159 | end
|
160 | 160 | end
|
|
0 commit comments