Sha256: 5f6efff8d6ff0dd3b8bab8bc0fd60a0ee048f03c47fa5b855a9fceb4c287ab8d

Contents?: true

Size: 354 Bytes

Versions: 22

Compression:

Stored size: 354 Bytes

Contents

require 'spec_helper'

describe Acfs::SingletonResource do
  let(:model) { Single }

  describe '.find' do
    before do
      stub_request(:get, 'http://users.example.org/singles')
        .to_return response id: 1
    end

    let(:action) { ->(cb) { model.find(&cb) } }
    it_should_behave_like 'a query method with multi-callback support'
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
acfs-1.3.2 spec/acfs/singleton_resource_spec.rb
acfs-1.3.1 spec/acfs/singleton_resource_spec.rb
acfs-1.3.0 spec/acfs/singleton_resource_spec.rb
acfs-1.2.1 spec/acfs/singleton_resource_spec.rb
acfs-0.50.0 spec/acfs/singleton_resource_spec.rb
acfs-1.2.0 spec/acfs/singleton_resource_spec.rb
acfs-0.49.1 spec/acfs/singleton_resource_spec.rb
acfs-1.1.1 spec/acfs/singleton_resource_spec.rb
acfs-0.49.0 spec/acfs/singleton_resource_spec.rb
acfs-1.1.0 spec/acfs/singleton_resource_spec.rb
acfs-0.48.2 spec/acfs/singleton_resource_spec.rb
acfs-1.0.1 spec/acfs/singleton_resource_spec.rb
acfs-0.48.1 spec/acfs/singleton_resource_spec.rb
acfs-1.0.0 spec/acfs/singleton_resource_spec.rb
acfs-0.48.0 spec/acfs/singleton_resource_spec.rb
acfs-0.47.0 spec/acfs/singleton_resource_spec.rb
acfs-0.46.0 spec/acfs/singleton_resource_spec.rb
acfs-0.45.0 spec/acfs/singleton_resource_spec.rb
acfs-0.44.0 spec/acfs/singleton_resource_spec.rb
acfs-0.43.2 spec/acfs/singleton_resource_spec.rb