Skip to content
This repository was archived by the owner on Aug 21, 2021. It is now read-only.

Commit 3617f2a

Browse files
committed
Fix a typo in a class name.
1 parent 3f35cee commit 3617f2a

File tree

5 files changed

+17
-17
lines changed

5 files changed

+17
-17
lines changed

SwinjectSimpleExample.xcodeproj/project.pbxproj

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
9878A1ED1B7876A70005ACD9 /* OpenWeatherMap.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9878A1EC1B7876A70005ACD9 /* OpenWeatherMap.swift */; };
1515
9878A1EF1B78930E0005ACD9 /* Networking.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9878A1EE1B78930E0005ACD9 /* Networking.swift */; };
1616
9878A1F11B7893210005ACD9 /* Network.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9878A1F01B7893210005ACD9 /* Network.swift */; };
17-
9878A1F31B78B9610005ACD9 /* WeatherTablerViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9878A1F21B78B9610005ACD9 /* WeatherTablerViewController.swift */; };
18-
9878A1F51B78C8340005ACD9 /* WeatherTablerViewControllerSpec.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9878A1F41B78C8340005ACD9 /* WeatherTablerViewControllerSpec.swift */; };
17+
9878A1F31B78B9610005ACD9 /* WeatherTableViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9878A1F21B78B9610005ACD9 /* WeatherTableViewController.swift */; };
18+
9878A1F51B78C8340005ACD9 /* WeatherTableViewControllerSpec.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9878A1F41B78C8340005ACD9 /* WeatherTableViewControllerSpec.swift */; };
1919
98BA27341B785EB00047549E /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 98BA27331B785EB00047549E /* AppDelegate.swift */; };
2020
98BA27391B785EB00047549E /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 98BA27371B785EB00047549E /* Main.storyboard */; };
2121
98BA273B1B785EB00047549E /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 98BA273A1B785EB00047549E /* Assets.xcassets */; };
@@ -41,8 +41,8 @@
4141
9878A1EC1B7876A70005ACD9 /* OpenWeatherMap.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = OpenWeatherMap.swift; sourceTree = "<group>"; };
4242
9878A1EE1B78930E0005ACD9 /* Networking.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Networking.swift; sourceTree = "<group>"; };
4343
9878A1F01B7893210005ACD9 /* Network.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Network.swift; sourceTree = "<group>"; };
44-
9878A1F21B78B9610005ACD9 /* WeatherTablerViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = WeatherTablerViewController.swift; sourceTree = "<group>"; };
45-
9878A1F41B78C8340005ACD9 /* WeatherTablerViewControllerSpec.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = WeatherTablerViewControllerSpec.swift; sourceTree = "<group>"; };
44+
9878A1F21B78B9610005ACD9 /* WeatherTableViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = WeatherTableViewController.swift; sourceTree = "<group>"; };
45+
9878A1F41B78C8340005ACD9 /* WeatherTableViewControllerSpec.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = WeatherTableViewControllerSpec.swift; sourceTree = "<group>"; };
4646
98BA27301B785EB00047549E /* SwinjectSimpleExample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SwinjectSimpleExample.app; sourceTree = BUILT_PRODUCTS_DIR; };
4747
98BA27331B785EB00047549E /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
4848
98BA27381B785EB00047549E /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
@@ -134,7 +134,7 @@
134134
children = (
135135
9878A1E41B7874420005ACD9 /* Model */,
136136
98BA27331B785EB00047549E /* AppDelegate.swift */,
137-
9878A1F21B78B9610005ACD9 /* WeatherTablerViewController.swift */,
137+
9878A1F21B78B9610005ACD9 /* WeatherTableViewController.swift */,
138138
98BA27371B785EB00047549E /* Main.storyboard */,
139139
98BA273A1B785EB00047549E /* Assets.xcassets */,
140140
98BA273C1B785EB00047549E /* LaunchScreen.storyboard */,
@@ -148,7 +148,7 @@
148148
children = (
149149
9878A1E91B7874610005ACD9 /* Model */,
150150
98BA274A1B785EB00047549E /* Info.plist */,
151-
9878A1F41B78C8340005ACD9 /* WeatherTablerViewControllerSpec.swift */,
151+
9878A1F41B78C8340005ACD9 /* WeatherTableViewControllerSpec.swift */,
152152
);
153153
path = SwinjectSimpleExampleTests;
154154
sourceTree = "<group>";
@@ -364,7 +364,7 @@
364364
9878A1ED1B7876A70005ACD9 /* OpenWeatherMap.swift in Sources */,
365365
9878A1E81B78745C0005ACD9 /* WeatherFetcher.swift in Sources */,
366366
9878A1EF1B78930E0005ACD9 /* Networking.swift in Sources */,
367-
9878A1F31B78B9610005ACD9 /* WeatherTablerViewController.swift in Sources */,
367+
9878A1F31B78B9610005ACD9 /* WeatherTableViewController.swift in Sources */,
368368
9878A1E71B78745C0005ACD9 /* City.swift in Sources */,
369369
9878A1F11B7893210005ACD9 /* Network.swift in Sources */,
370370
98BA27341B785EB00047549E /* AppDelegate.swift in Sources */,
@@ -375,7 +375,7 @@
375375
isa = PBXSourcesBuildPhase;
376376
buildActionMask = 2147483647;
377377
files = (
378-
9878A1F51B78C8340005ACD9 /* WeatherTablerViewControllerSpec.swift in Sources */,
378+
9878A1F51B78C8340005ACD9 /* WeatherTableViewControllerSpec.swift in Sources */,
379379
9878A1EB1B78746C0005ACD9 /* WeatherFetcherSpec.swift in Sources */,
380380
);
381381
runOnlyForDeploymentPostprocessing = 0;

SwinjectSimpleExample/AppDelegate.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
5050

5151
private func createContainer() -> Container {
5252
let container = Container()
53-
container.registerForStoryboard(WeatherTablerViewController.self) { r, c in
53+
container.registerForStoryboard(WeatherTableViewController.self) { r, c in
5454
c.weatherFetcher = r.resolve(WeatherFetcher.self)
5555
}
5656
container.register(Networking.self) { _ in Network() }

SwinjectSimpleExample/Base.lproj/Main.storyboard

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<!--Weather Now-->
88
<scene sceneID="2D7-jx-u5T">
99
<objects>
10-
<tableViewController id="ykF-tn-1bK" customClass="WeatherTablerViewController" customModule="SwinjectSimpleExample" customModuleProvider="target" sceneMemberID="viewController">
10+
<tableViewController id="ykF-tn-1bK" customClass="WeatherTableViewController" customModule="SwinjectSimpleExample" customModuleProvider="target" sceneMemberID="viewController">
1111
<tableView key="view" clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="prototypes" style="plain" separatorStyle="default" rowHeight="44" sectionHeaderHeight="28" sectionFooterHeight="28" id="45C-dC-7GN">
1212
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
1313
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>

SwinjectSimpleExample/WeatherTablerViewController.swift renamed to SwinjectSimpleExample/WeatherTableViewController.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//
2-
// WeatherTablerViewController.swift
2+
// WeatherTableViewController.swift
33
// SwinjectSimpleExample
44
//
55
// Created by Yoichi Tagaya on 8/10/15.
@@ -8,7 +8,7 @@
88

99
import UIKit
1010

11-
class WeatherTablerViewController: UITableViewController {
11+
class WeatherTableViewController: UITableViewController {
1212
var weatherFetcher: WeatherFetcher?
1313
private var cities = [City]() {
1414
didSet {

SwinjectSimpleExampleTests/WeatherTablerViewControllerSpec.swift renamed to SwinjectSimpleExampleTests/WeatherTableViewControllerSpec.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//
2-
// WeatherTablerViewControllerSpec.swift
2+
// WeatherTableViewControllerSpec.swift
33
// SwinjectSimpleExample
44
//
55
// Created by Yoichi Tagaya on 8/10/15.
@@ -11,7 +11,7 @@ import Nimble
1111
import Swinject
1212
@testable import SwinjectSimpleExample
1313

14-
class WeatherTablerViewControllerSpec: QuickSpec {
14+
class WeatherTableViewControllerSpec: QuickSpec {
1515
class MockNetwork: Networking {
1616
var requestCount = 0
1717

@@ -29,16 +29,16 @@ class WeatherTablerViewControllerSpec: QuickSpec {
2929
container.register(WeatherFetcher.self) { r in
3030
WeatherFetcher(networking: r.resolve(Networking.self)!)
3131
}
32-
container.register(WeatherTablerViewController.self) { r in
33-
let controller = WeatherTablerViewController()
32+
container.register(WeatherTableViewController.self) { r in
33+
let controller = WeatherTableViewController()
3434
controller.weatherFetcher = r.resolve(WeatherFetcher.self)
3535
return controller
3636
}
3737
}
3838

3939
it("starts fetching weather information when the view is about appearing.") {
4040
let network = container.resolve(Networking.self) as! MockNetwork
41-
let controller = container.resolve(WeatherTablerViewController.self)!
41+
let controller = container.resolve(WeatherTableViewController.self)!
4242

4343
expect(network.requestCount) == 0
4444
controller.viewWillAppear(true)

0 commit comments

Comments
 (0)