mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-10-14 18:15:41 +00:00
Renames Java with Spock language without blanks in folder name.
This commit is contained in:
1 parent
e0373461c1
commit
027693ce83
10 files changed
No files matched your search
@@ -0,0 +1,25 @@
|
||||
package com.gildedrose
|
||||
|
||||
import spock.lang.Specification
|
||||
|
||||
/**
|
||||
* Spock unit tests.
|
||||
*/
|
||||
class GildedRoseSpec extends Specification {
|
||||
|
||||
def "should update quality correctly"() {
|
||||
|
||||
given: "some items"
|
||||
Item[] items = [new Item("foo", 0, 0)];
|
||||
|
||||
and: "the application with these items"
|
||||
GildedRose app = new GildedRose(items);
|
||||
|
||||
when: "updating quality"
|
||||
app.updateQuality();
|
||||
|
||||
then: "the quality is correct"
|
||||
app.items[0].name == "fixme"
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user