Skip to content

Commit

Permalink
week 4: GradeCalculator tests enabled and working
Browse files Browse the repository at this point in the history
  • Loading branch information
Dierk Koenig committed Oct 9, 2024
1 parent c158e4d commit a551576
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion grails-app/views/calculator/CalculatorOutput.gsp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</head>
<body>

<p> Your average is <output>placeholder goes here</output>.</p>
<p> Your average is <output>${result}</output>.</p>

<p> Back to the <a href="/static/GradeCalculator.html">calculator</a>.</p>

Expand Down
3 changes: 1 addition & 2 deletions src/integration-test/groovy/rooms/CalculatorSpec.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import spock.lang.Ignore
* See http://www.gebish.org/manual/current/ for more instructions
*/
@Integration
@Ignore
class CalculatorSpec extends GebSpec {


Expand All @@ -25,7 +24,7 @@ class CalculatorSpec extends GebSpec {

then: "Result Page is displayed"
title == "Average"
// $("output").text() == "5.5"
$("output").text() == "5.5"


when: "click on back link"
Expand Down

0 comments on commit a551576

Please sign in to comment.