mirror of
https://github.com/nsomar/Swiftline.git
synced 2024-09-19 01:18:27 +03:00
Reversing failing test and adding actual executor to fetch env
This commit is contained in:
parent
d3a14fe117
commit
23df442bd0
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user