Sha256: abb068af17b1d2566e6c7f907e9c049d76d2c3f6440e519d11401e21f749a36c
Contents?: true
Size: 739 Bytes
Versions: 1
Compression:
Stored size: 739 Bytes
Contents
require "spec_helper" describe RedboothRuby::ClientOperations::Search, vcr: 'search' do include_context 'authentication' let(:search_params) do { project_id: 2, name: 'new created note', content: 'bla bla bla' } end let(:endpoint) { 'search' } describe ".index" do subject { client.search(query: 'task') } it "makes a new GET request using the correct API endpoint to receive notes collection" do expect(RedboothRuby).to receive(:request).with(:get, nil, endpoint, { query: 'task' }, { session: session }).and_call_original subject end it { expect(subject.class).to eql RedboothRuby::Request::Collection } it { expect(subject.all.first).to be_a RedboothRuby::Base } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
redbooth-ruby-0.0.5 | spec/redbooth-ruby/client_operations/search_spec.rb |