import Quick
import Nimble

import Faro
@testable import Faro_Example

class OrderSpec: QuickSpec {
    override func spec() {
        describe("Order") {
            context("initialisation") {
                it("should have a path"){
                    let expected = "path"
                    let order = Order(path: expected)

                    expect(order.path).to(equal(expected))
                }
            }
        }
    }
}

import Quick
import Nimble

import Faro
@testable import Faro_Example

class OrderSpec: QuickSpec {
    override func spec() {
        describe("Order") {
            let expected = "path"
            let order = Order(path: expected)

            context("initialisation") {
                it("should have a path"){
                    expect(order.path).to(equal(expected))
                }

                it("should default to .GET") {
                    expect(order.method.rawValue).to(equal("GET"))
                }
            }
        }
    }
}

Order defaults to method GET
Order defaults to method GET
