Sha256: 6c76b92a4216aee347de6e326d5df0ecb2a62d388de03b95480bc3a99d5116d5

Contents?: true

Size: 555 Bytes

Versions: 3

Compression:

Stored size: 555 Bytes

Contents

require_relative '../../spec_helper'

describe ::Syncano::Resources::Paths do
  let(:koza) { double 'KozaClass' }

  context 'collections' do
    subject { described_class.instance.collections }

    before { subject.define '/kozas/{koza_name}/kiszkas/', koza }

    specify { expect(subject.match('/kozas/mykoza/kiszkas/')).to eq(koza) }
  end

  context 'members' do
    subject { described_class.instance.members }

    before { subject.define '/kozas/{koza_name}/', koza }

    xspecify { expect(subject.match('kozas/mykoza/')).to eq(koza) }
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
syncano-4.0.0.alpha4 spec/unit/resources/paths_spec.rb
syncano-4.0.0.alpha3 spec/unit/resources/paths_spec.rb
syncano-4.0.0.alpha2 spec/unit/resources/paths_spec.rb