Skip to content

Instantly share code, notes, and snippets.

#!/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
protocol UserDefaultsProtocol {
func object(forKey defaultName: String) -> Any?
}
extension UserDefaults: UserDefaultsProtocol {}
class Demo {
var userDefaults: UserDefaultsProtocol = UserDefaults.standard
}
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