Skip to content

Commit

Permalink
Merge pull request #43 from Nirma/fix_tests
Browse files Browse the repository at this point in the history
Fix tests
  • Loading branch information
Nicholas Maccharoli authored Sep 23, 2017
2 parents 3c84dc9 + ba4364a commit e46d8c2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
language: objective-c
osx_image: xcode8.3
osx_image: xcode9

script:
- xcodebuild -scheme Attributed build test -destination 'OS=10.3.1,name=iPhone 7 Plus'
- xcodebuild -scheme Attributed build test -destination 'OS=11.0,name=iPhone 7 Plus'

after_success:
- bash <(curl -s https://codecov.io/bash)
4 changes: 2 additions & 2 deletions AttributedTests/AttributesTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ class AttributesTests: XCTestCase {
// NSBaselineOffsetAttributeName

func testBaselineOffset() {
let expected: [String: Any] = [NSBaselineOffsetAttributeName: NSNumber(value: 1)]
let expected: [String: Any] = [NSAttributedStringKey.baselineOffset.rawValue: NSNumber(value: 1)]
let attributed = Attributes().baselineOffset(1)
XCTAssert(attributed.dictionary.keys.first! == expected.keys.first!, "NSBaselineOffsetAttributeName functionality is broken")
XCTAssert(attributed.dictionary.keys.first!.rawValue == expected.keys.first!, "NSBaselineOffsetAttributeName functionality is broken")
}
}

0 comments on commit e46d8c2

Please sign in to comment.