             context("When using the identity function as generator") {
                 
                 it("should return always the same element") {
-                    expect(generator.next()).to(equal(IntGenerator.Zero))
-                    expect(generator.next()).to(equal(IntGenerator.Zero))
+                    expect(generator.next()).to(equal(IntRepresentable.Zero))
+                    expect(generator.next()).to(equal(IntRepresentable.Zero))
                 }
             }
             

import Nimble
import Core

private enum IntGenerator: Int {
    case Zero
    case One
    case Two

        describe("#allValues") {
            
            it("should return all values") {
                let allValues = Array(IntRepresentable.allValues())
                expect(allValues).to(equal([.Zero, .One, .Two, .Three]))
            }
            
            context("When specifying an initial value") {
                
                it("should return all values after starting at the initial value") {
                    let values = Array(IntRepresentable.allValues(startingAt: 1))
                    expect(values).to(equal([.One, .Two, .Three]))
                }
            }
