Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
kchrusciel committed Aug 12, 2017
1 parent adbd2f8 commit 9d70ef8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions FizzBuzz/src/test/java/pl/codecouple/FizzBuzzSpec.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -12,29 +12,29 @@ class FizzBuzzSpec extends Specification {
@Shared
def fizzBuzz = new FizzBuzz()

def "Should return 'Fizz' when number is divided by three" (){
def "Should return 'Fizz' when number is divisible by three" (){
when:
def result = fizzBuzz.check(3)
then:
result == "Fizz"
}

def "Should return 'Buzz' when number is divided by five" (){
def "Should return 'Buzz' when number is divisible by five" (){
when:
def result = fizzBuzz.check(5)
then:
result == "Buzz"
}

def "Should return 'FizzBuzz' when number is divided by five and three" (){
def "Should return 'FizzBuzz' when number is divisible by five and three" (){
when:
def result = fizzBuzz.check(15)
then:
result == "FizzBuzz"
}

@Unroll
def "Should return #excpectedValue when number is divided by #number" (){
def "Should return #excpectedValue when number is divisible by #number" (){
when:
def result = fizzBuzz.check(number)
then:
Expand Down
10 changes: 5 additions & 5 deletions FizzBuzz/src/test/java/pl/codecouple/FizzBuzzTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,21 @@ public class FizzBuzzTest {

private FizzBuzz fizzBuzz = new FizzBuzz();

//Should return 'Fizz' when number is divided by three
//Should return 'Fizz' when number is divisible by three

@Test
public void shouldReturnFizzWhenNumberIsDividedByThree() throws Exception {
public void shouldReturnFizzWhenNumberIsDivisibleByThree() throws Exception {
// When
String result = fizzBuzz.check(3);
// Then
assertThat(result).contains("Fizz");
}


//Should return 'Buzz' when number is divided by five
//Should return 'Buzz' when number is divisible by five

@Test
public void shouldReturnBuzzWhenNumberIsDividedByFive() throws Exception {
public void shouldReturnBuzzWhenNumberIsDivisibleByFive() throws Exception {
// When
String result = fizzBuzz.check(5);
// Then
Expand All @@ -36,7 +36,7 @@ public void shouldReturnBuzzWhenNumberIsDividedByFive() throws Exception {
//Should return 'FizzBuzz' when number is divisible by five

@Test
public void shouldReturnFizzBuzzWhenNumberIsDividedByFiveAndThree() throws Exception {
public void shouldReturnFizzBuzzWhenNumberIsDivisibleByFiveAndThree() throws Exception {
// When
String result = fizzBuzz.check(15);
// Then
Expand Down

0 comments on commit 9d70ef8

Please sign in to comment.