forked from pact-foundation/pact-ruby
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbethtest.rb
More file actions
30 lines (27 loc) · 695 Bytes
/
bethtest.rb
File metadata and controls
30 lines (27 loc) · 695 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
require 'colored'
puts "Key: #{'-'.red} expected, #{'+'.green} actual"
puts '{
"_embedded": {'
puts '- "events": [
- {
- "probability": "75",
- "timestamp": "2014-03-03T14:00:00+00:00",
- "_embedded": {
- "opportunity": {
- "displayAdvertising": true,
- "_links": {
- "self": {
- "href": "http://media-opportunities/opportunity-id-1"
- },
- "mediaProject": {
- "href": "http://media-projects/project-id-1"
- }
- }
- }
- }
- }
- ]'.red
puts '+ {
+ }'.green
puts ' }
}'