Sha256: d5b64e66bcd21c8c300ed1d4b8e7ecbe723a643b4fd2161c78ba0adec55d4468
Contents?: true
Size: 380 Bytes
Versions: 2
Compression:
Stored size: 380 Bytes
Contents
# frozen_string_literal: true 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_behaves_like 'a query method with multi-callback support' end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
acfs-2.0.0 | spec/acfs/singleton_resource_spec.rb |
acfs-1.7.0 | spec/acfs/singleton_resource_spec.rb |