Sha256: c571582a1011abd8d68abf150ce3d0f93c790524e0ac2ddf7c09fb7eb5adb55c
Contents?: true
Size: 472 Bytes
Versions: 9
Compression:
Stored size: 472 Bytes
Contents
require 'spec_helper' describe Sentimeta::Model do subject(:client) { Sentimeta::Client } subject { model = Sentimeta::Model; model.endpoint :spheres; model } it { should respond_to :fetch } describe :fetch do it "should return an array" do expect(subject.send :fetch).to be_kind_of Array end it "should call client_fetch once" do expect(client).to receive(:fetch).and_call_original.once subject.send :fetch end end end
Version data entries
9 entries across 9 versions & 1 rubygems