forked from modocache/Guanaco
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGuanaco.podspec
More file actions
37 lines (33 loc) · 1.46 KB
/
Guanaco.podspec
File metadata and controls
37 lines (33 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
Pod::Spec.new do |s|
s.name = "Guanaco"
s.version = "0.2.0"
s.summary = "Nimble matchers for Result."
s.description = <<-DESC
Testing algebraic data types like `Result` can be a pain.
For example, if you had a result of type `Result<Int, NSError>`, and
wanted to test that it had a successful value of `10`, you'd have to
write:
```swift
switch result {
case .Success(let value): XCTAssertEquals(value, 10)
case .Failure(let error): XCTFail()
}
```
Tests should be clear, consise, and provide useful failure messages--in
other words, the code above isn't going to cut it! Instead, use Guanaco
to write:
```swift
expect(result).to(haveSucceeded(equal(10)))
```
DESC
s.homepage = "https://github.com/modocache/Guanaco"
s.license = { :type => "MIT", :file => "LICENSE" }
s.author = { "modocache" => "modocache@gmail.com" }
s.social_media_url = "http://twitter.com/modocache"
s.ios.deployment_target = "8.0"
s.osx.deployment_target = "10.10"
s.source = { :git => "https://github.com/modocache/Guanaco.git", :tag => "v#{s.version}" }
s.source_files = "Guanaco", "Guanaco/**/*.{h,swift}"
s.dependency 'Nimble', '~> 0.3.0'
s.frameworks = ['XCTest']
end