This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[alias] | |
# ronto stands for "rebase --onto". Uses the current branch to move it and updates the start-of-the-branch tag along | |
ronto = "!f() { \ | |
git rebase --onto $1 __start__$(git rev-parse --abbrev-ref HEAD) $(git rev-parse --abbrev-ref HEAD); \ | |
git tag -d __start__$(git rev-parse --abbrev-ref HEAD); \ | |
git tag __start__$(git rev-parse --abbrev-ref HEAD) $1; \ | |
}; f" | |
# nb stands for "create branch". Creates a tag marking the start-of-the-branch | |
cb = "!f() { \ | |
git tag __start__$1; \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// --------------------------------------------- // | |
// -------------- VIEW CONTROLLER -------------- // | |
// --------------------------------------------- // | |
import UIKit | |
class SuperHeroControlsViewController: UIViewController { | |
var textField: UITextField! | |
var slider: UISlider! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class SuperHeroesControlsViewControllerTests: AcceptanceTestCase { | |
func testShowsEmptyCaseIfThereAreNoSuperHeroes() { | |
openSuperHeroesViewController() | |
tester().tapView(withAccessibilityLabel: "Button") | |
tester().setValue(0, forSliderWithAccessibilityLabel: "Slider") | |
for _ in (0..<10) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class SuperHeroDetailViewControllerTests: XCTestCase { | |
private let repository = MockSuperHeroesRepository() | |
/* ... */ | |
private func openSuperHeroDetailViewController(_ superHeroName: String) -> UIViewController { | |
let superHeroDetailViewController = ServiceLocator() | |
.provideSuperHeroDetailViewController(superHeroName) as! SuperHeroDetailViewController | |
superHeroDetailViewController.presenter = SuperHeroDetailPresenter(ui: superHeroDetailViewController, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class SuperHeroDetailViewControllerTests: XCTestCase { | |
private let repository = MockSuperHeroesRepository() | |
/* ... */ | |
private func openSuperHeroDetailViewController(_ superHeroName: String) { | |
let superHeroDetailViewController = ServiceLocator() | |
.provideSuperHeroDetailViewController(superHeroName) as! SuperHeroDetailViewController | |
superHeroDetailViewController.presenter = SuperHeroDetailPresenter(ui: superHeroDetailViewController, |
NewerOlder