1
1
mirror of https://github.com/nsomar/Swiftline.git synced 2024-09-17 16:38:04 +03:00

Reversing failing test and adding actual executor to fetch env

This commit is contained in:
Omar Abdelhafith 2015-11-28 01:13:53 +00:00
parent d3a14fe117
commit 23df442bd0

View File

@ -7,6 +7,15 @@ import Nimble
class ENVTests: QuickSpec {
override func spec() {
beforeEach {
CommandExecutor.currentTaskExecutor = ActualTaskExecutor()
}
it("Reads environment variables") {
expect(Env.get("NSApplicationQuitWithoutSuddenTermination"))
.to(equal("YES"))
}
it("returns nil when key does not exists") {
expect(Env.get("AAAAA"))
.to(beNil())