Skip to content

Commit

Permalink
Add spec for color schemes
Browse files Browse the repository at this point in the history
  • Loading branch information
jmleroux committed Mar 14, 2016
1 parent d6aba4b commit 6b4d1c1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions spec/PUGX/Poser/BadgeSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,14 @@ function it_should_be_constructed_by_fromURI_factory_method_escaping_correctly_w
throw new Exception(sprintf("from[%s] wants[%s] having[%s]\n", $input, $assertInput, (string) $it));
}
}

function it_should_validate_available_color_schemes()
{
$colorSchemes = \PUGX\Poser\Badge::getColorNamesAvailable();

foreach ($colorSchemes as $colorScheme) {
$this->beConstructedWith('a', 'b', $colorScheme, 'svg');
$this->getHexColor()->shouldBeString();
}
}
}

0 comments on commit 6b4d1c1

Please sign in to comment.