Sha256: 273b110d4f53b81667ff7f0ab6d5bb259331b89ec3b158de662195897176d86e

Contents?: true

Size: 534 Bytes

Versions: 1

Compression:

Stored size: 534 Bytes

Contents

require "spec_helper"

describe "The Smooth API Definition" do
  let(:api) { Smooth.current_api }

  it "should have a current api" do
    expect(api.name).to eq("My Application")
  end

  it "should retrieve an api instance by its name" do
    expect(Smooth.fetch_api("My Application").name).to eq("My Application")
  end

  it "should have a books resource" do
    resource = api.resource "Books"
    expect(resource).to be_a(Smooth::Resource)
  end

  it "should have a version" do
    expect(api.version).to equal(:v1)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
smooth-2.0.1 spec/lib/smooth/api_spec.rb