railsware / Sleipnir

BDD-style framework for Swift
http://railsware.com/blog/2014/07/04/bdd-style-testing-in-swift-with-sleipnir
MIT License
844 stars 48 forks source link

Should syntax implementation #5

Closed atermenji closed 9 years ago

atermenji commented 10 years ago

This pull-request allows to write specs in should style:

it("should work") {
  actual.should.equal(expected)
  3.should.beGreaterThan(1)
}

It provides extensions for all basic types, NSObject and some ObjC collection types (NSSet, NSArray) with should variable. Each of the extension supports using all available matchers of Sleipnir.

atermenji commented 9 years ago

@AlexDenisov I guess this can be merged already