Skip to content

Commit

Permalink
Merge pull request #79 from icemobilelab/master
Browse files Browse the repository at this point in the history
Expose Bank class, Add Exposure specs
  • Loading branch information
vadymmarkov authored Oct 12, 2017
2 parents c48a1f8 + bfe049a commit 7ad1946
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 0 deletions.
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

0 comments on commit 7ad1946

Please sign in to comment.