Skip to content

Commit 864b90c

Browse files
committed
added test
1 parent a56e1d2 commit 864b90c

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

features/images.feature

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
Feature: Images
2+
As a Tester
3+
I want to see which images have changed
4+
so that I know where to test especially
5+
6+
Scenario: Diff Images
7+
Given a file named "A.yml" with:
8+
"""
9+
version: "2"
10+
services:
11+
one:
12+
image: one:1
13+
two:
14+
image: two:1
15+
four:
16+
image: four:1
17+
"""
18+
And a file named "B.yml" with:
19+
"""
20+
version: "2"
21+
services:
22+
one:
23+
image: one:1
24+
two:
25+
image: two:2
26+
three:
27+
image: three:1
28+
"""
29+
When I run `bin/compose_diff --images A.yml B.yml`
30+
Then it should pass with exactly:
31+
"""
32+
| Name | Version |
33+
| - | - |
34+
| four | 1 (deleted) |
35+
| one | 1 |
36+
| three | 1 (new) |
37+
| two | 2 (1) |
38+
"""

features/support/env.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
require 'aruba/cucumber'

0 commit comments

Comments
 (0)