Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose Bank class, Add Exposure specs #79

Merged
merged 15 commits into from
Oct 12, 2017
Merged
2 changes: 2 additions & 0 deletions Source/Faker.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ public final class Faker {
public let phoneNumber: PhoneNumber
public let team: Team
public let number: Number
public let bank: Bank

let parser: Parser

Expand All @@ -37,5 +38,6 @@ public final class Faker {
phoneNumber = PhoneNumber(parser: parser)
team = Team(parser: parser)
number = Number()
bank = Bank(parser: parser)
}
}
61 changes: 61 additions & 0 deletions Tests/Fakery/FakerSpec.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,67 @@ final class FakerSpec: QuickSpec {
expect(faker.name.parser).to(beIdenticalTo(faker.parser))
expect(faker.phoneNumber.parser).to(beIdenticalTo(faker.parser))
expect(faker.team.parser).to(beIdenticalTo(faker.parser))
expect(faker.bank.parser).to(beIdenticalTo(faker.parser))
}
}

describe("#address") {
it("should be accessible") {
expect(faker.address).to(beAKindOf(Address.self))
}
}

describe("#app") {
it("should be accessible") {
expect(faker.app).to(beAKindOf(App.self))
}
}

describe("#business") {
it("should be accessible") {
expect(faker.business).to(beAKindOf(Business.self))
}
}

describe("#commerce") {
it("should be accessible") {
expect(faker.commerce).to(beAKindOf(Commerce.self))
}
}

describe("#internet") {
it("should be accessible") {
expect(faker.internet).to(beAKindOf(Internet.self))
}
}

describe("#lorem") {
it("should be accessible") {
expect(faker.lorem).to(beAKindOf(Lorem.self))
}
}

describe("#name") {
it("should be accessible") {
expect(faker.name).to(beAKindOf(Name.self))
}
}

describe("#phoneNumber") {
it("should be accessible") {
expect(faker.phoneNumber).to(beAKindOf(PhoneNumber.self))
}
}

describe("#team") {
it("should be accessible") {
expect(faker.team).to(beAKindOf(Team.self))
}
}

describe("#bank") {
it("should be accessible") {
expect(faker.bank).to(beAKindOf(Bank.self))
}
}
}
Expand Down