Skip to content

Commit aabad8a

Browse files
committed
Update regression test artefacts
The change to ERB templates has introduced a few extra newlines in the question page HTML, but none of them affect the content viewable by the user. I used the following command to hide these changes: $ git diff --ignore-blank-lines The change to ERB templates has also removed the trailing newline for question attributes which were using a `|`-prefixed multi-line YAML string. Even though the newline has been reproduced faithfully in the corresponding ERB template, it has been lost by one/both of the calls to `ErbRenderer#normalize_blank_lines` and/or `String#chomp`. I feel as if the resulting HTML is actually cleaner and so I'm happy to update the regression test artefacts accordingly.
1 parent a46024a commit aabad8a

File tree

22 files changed

+48
-8
lines changed

22 files changed

+48
-8
lines changed

test/artefacts/am-i-getting-minimum-wage/current_payment.html

+2
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ <h2>
3737
<div class="question-body">
3838

3939

40+
4041
<p class="hint">If you’re 19 or over and past your first year you don’t count as an apprentice for minimum wage purposes.</p>
4142

4243
<div class="">
@@ -70,6 +71,7 @@ <h2>
7071

7172

7273

74+
7375
</div>
7476
</div>
7577
</div>

test/artefacts/am-i-getting-minimum-wage/current_payment/not_an_apprentice.html

+2
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,14 @@ <h2>
3838

3939

4040

41+
4142
<div class="">
4243

4344
<label for="response"><input type="text" name="response" id="response" />years old</label>
4445

4546

4647

48+
4749
</div>
4850
</div>
4951
</div>

test/artefacts/am-i-getting-minimum-wage/current_payment/not_an_apprentice/25.html

+3-2
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,16 @@ <h2>
3838
<p>This is your pay period.</p>
3939

4040

41-
<p class="hint">You get paid every
42-
</p>
41+
42+
<p class="hint">You get paid every</p>
4343

4444
<div class="">
4545

4646
<label for="response"><input type="text" name="response" id="response" />days</label>
4747

4848

4949

50+
5051
</div>
5152
</div>
5253
</div>

test/artefacts/am-i-getting-minimum-wage/current_payment/not_an_apprentice/25/1.html

+3-2
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,16 @@ <h2>
3737
<div class="question-body">
3838

3939

40-
<p class="hint">Don’t include any overtime or other extra hours you might work.
41-
</p>
40+
41+
<p class="hint">Don’t include any overtime or other extra hours you might work.</p>
4242

4343
<div class="">
4444

4545
<label for="response"><input type="text" name="response" id="response" />hours</label>
4646

4747

4848

49+
4950
</div>
5051
</div>
5152
</div>

test/artefacts/am-i-getting-minimum-wage/current_payment/not_an_apprentice/25/1/16.0/100.0/0.0/yes_charged.html

+2
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,14 @@ <h2>
3838

3939

4040

41+
4142
<div class="">
4243

4344
<label for="response_amount">&pound; <input type="text" name="response" id="response" size="5" />per day</label>
4445

4546

4647

48+
4749
</div>
4850
</div>
4951
</div>

test/artefacts/am-i-getting-minimum-wage/current_payment/not_an_apprentice/25/1/16.0/100.0/0.0/yes_free.html

+2
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,14 @@ <h2>
3838

3939

4040

41+
4142
<div class="">
4243

4344
<label for="response"><input type="text" name="response" id="response" />days per week</label>
4445

4546

4647

48+
4749
</div>
4850
</div>
4951
</div>

test/artefacts/am-i-getting-minimum-wage/current_payment/not_an_apprentice/25/1/16.0/100.0/0.html

+2
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ <h2>
3838

3939

4040

41+
4142
<div class="">
4243

4344
<ul class="options">
@@ -63,6 +64,7 @@ <h2>
6364

6465

6566

67+
6668
</div>
6769
</div>
6870
</div>

test/artefacts/am-i-getting-minimum-wage/current_payment/not_an_apprentice/25/1/16.0/100.0/8.html

+2
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,14 @@ <h2>
3838

3939

4040

41+
4142
<div class="">
4243

4344
<label for="response_amount">&pound; <input type="text" name="response" id="response" size="5" />per hour</label>
4445

4546

4647

48+
4749
</div>
4850
</div>
4951
</div>

test/artefacts/am-i-getting-minimum-wage/current_payment/not_an_apprentice/25/1/16.0/100.html

+2
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ <h2>
3737
<div class="question-body">
3838

3939

40+
4041
<p class="hint">If you don’t work overtime enter 0</p>
4142

4243
<div class="">
@@ -45,6 +46,7 @@ <h2>
4546

4647

4748

49+
4850
</div>
4951
</div>
5052
</div>

test/artefacts/am-i-getting-minimum-wage/current_payment/not_an_apprentice/25/1/16.html

+2
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ <h2>
3737
<div class="question-body">
3838

3939

40+
4041
<p class="hint">Don’t include payments for overtime or anything extra to your pay, eg money for clothes or goods.</p>
4142

4243
<div class="">
@@ -45,6 +46,7 @@ <h2>
4546

4647

4748

49+
4850
</div>
4951
</div>
5052
</div>

test/artefacts/am-i-getting-minimum-wage/past_payment.html

+2
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ <h2>
3737
<div class="question-body">
3838

3939

40+
4041
<p class="hint">You can go back up to 6 years</p>
4142

4243
<div class="">
@@ -88,6 +89,7 @@ <h2>
8889

8990

9091

92+
9193
</div>
9294
</div>
9395
</div>

test/artefacts/am-i-getting-minimum-wage/past_payment/2014-10-01.html

+2
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ <h2>
3838

3939

4040

41+
4142
<div class="">
4243

4344
<ul class="options">
@@ -63,6 +64,7 @@ <h2>
6364

6465

6566

67+
6668
</div>
6769
</div>
6870
</div>

test/artefacts/am-i-getting-minimum-wage/past_payment/2014-10-01/no.html

+2
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,14 @@ <h2>
3838

3939

4040

41+
4142
<div class="">
4243

4344
<label for="response"><input type="text" name="response" id="response" />years old</label>
4445

4546

4647

48+
4749
</div>
4850
</div>
4951
</div>

test/artefacts/am-i-getting-minimum-wage/past_payment/2014-10-01/no/25.html

+3-2
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,16 @@ <h2>
3838
<p>This is your pay period.</p>
3939

4040

41-
<p class="hint">You get paid every
42-
</p>
41+
42+
<p class="hint">You get paid every</p>
4343

4444
<div class="">
4545

4646
<label for="response"><input type="text" name="response" id="response" />days</label>
4747

4848

4949

50+
5051
</div>
5152
</div>
5253
</div>

test/artefacts/am-i-getting-minimum-wage/past_payment/2014-10-01/no/25/1.html

+3-2
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,16 @@ <h2>
3737
<div class="question-body">
3838

3939

40-
<p class="hint">Don’t include any overtime or other extra hours you worked.
41-
</p>
40+
41+
<p class="hint">Don’t include any overtime or other extra hours you worked.</p>
4242

4343
<div class="">
4444

4545
<label for="response"><input type="text" name="response" id="response" />hours</label>
4646

4747

4848

49+
4950
</div>
5051
</div>
5152
</div>

test/artefacts/am-i-getting-minimum-wage/past_payment/2014-10-01/no/25/1/16.0/100.0/0.0/yes_charged.html

+2
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,14 @@ <h2>
3838

3939

4040

41+
4142
<div class="">
4243

4344
<label for="response_amount">&pound; <input type="text" name="response" id="response" size="5" />per day</label>
4445

4546

4647

48+
4749
</div>
4850
</div>
4951
</div>

test/artefacts/am-i-getting-minimum-wage/past_payment/2014-10-01/no/25/1/16.0/100.0/0.0/yes_free.html

+2
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,14 @@ <h2>
3838

3939

4040

41+
4142
<div class="">
4243

4344
<label for="response"><input type="text" name="response" id="response" />days per week</label>
4445

4546

4647

48+
4749
</div>
4850
</div>
4951
</div>

test/artefacts/am-i-getting-minimum-wage/past_payment/2014-10-01/no/25/1/16.0/100.0/0.html

+2
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ <h2>
3838

3939

4040

41+
4142
<div class="">
4243

4344
<ul class="options">
@@ -63,6 +64,7 @@ <h2>
6364

6465

6566

67+
6668
</div>
6769
</div>
6870
</div>

test/artefacts/am-i-getting-minimum-wage/past_payment/2014-10-01/no/25/1/16.0/100.0/8.html

+2
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,14 @@ <h2>
3838

3939

4040

41+
4142
<div class="">
4243

4344
<label for="response_amount">&pound; <input type="text" name="response" id="response" size="5" />per hour</label>
4445

4546

4647

48+
4749
</div>
4850
</div>
4951
</div>

test/artefacts/am-i-getting-minimum-wage/past_payment/2014-10-01/no/25/1/16.0/100.html

+2
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ <h2>
3737
<div class="question-body">
3838

3939

40+
4041
<p class="hint">If you didn’t work overtime enter 0</p>
4142

4243
<div class="">
@@ -45,6 +46,7 @@ <h2>
4546

4647

4748

49+
4850
</div>
4951
</div>
5052
</div>

test/artefacts/am-i-getting-minimum-wage/past_payment/2014-10-01/no/25/1/16.html

+2
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ <h2>
3737
<div class="question-body">
3838

3939

40+
4041
<p class="hint">Don’t include payments for overtime or anything extra to your pay, eg money for clothes or goods.</p>
4142

4243
<div class="">
@@ -45,6 +46,7 @@ <h2>
4546

4647

4748

49+
4850
</div>
4951
</div>
5052
</div>

test/artefacts/am-i-getting-minimum-wage/y.html

+2
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ <h2>
3838

3939

4040

41+
4142
<div class="">
4243

4344
<ul class="options">
@@ -57,6 +58,7 @@ <h2>
5758

5859

5960

61+
6062
</div>
6163
</div>
6264
</div>

0 commit comments

Comments
 (0)