This file contains hidden or 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
#!/bin/bash | |
# =========== Install brew ========== | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
brew update | |
# ========= Install Apps ========== | |
brew tap Homebrew/bundle | |
brew bundle |
This file contains hidden or 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
protocol UserDefaultsProtocol { | |
func object(forKey defaultName: String) -> Any? | |
} | |
extension UserDefaults: UserDefaultsProtocol {} | |
class Demo { | |
var userDefaults: UserDefaultsProtocol = UserDefaults.standard | |
} |
This file contains hidden or 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
import Quick | |
import Nimble | |
@testable import TestModule | |
class ModuleTests: QuickSpec { | |
var sut: TestClass? | |
describe("The TestClass") { | |
context("in a specific state") { | |
it("does what ever we test for") { | |
// the actual test |
NewerOlder