Sha256: 02a7a7395d9f23439b412c56998ce38b34cfb1fe6594e29023f134221536ce65
Contents?: true
Size: 783 Bytes
Versions: 3
Compression:
Stored size: 783 Bytes
Contents
require 'spec_helper' describe Sentimeta::Client, :vcr do subject { Sentimeta::Client } let(:valid_url) { subject.generate_uri(:spheres) } describe :fetch do it { should respond_to :fetch } end describe :generate_uri do it "should return an instance of String" do expect(valid_url).to be_kind_of String end end describe :endpoints do %i(criteria spheres objects catalog).each do |endpoint| it { should respond_to endpoint } it "##{endpoint} should call fetch once" do expect(subject).to receive(:fetch).and_call_original.once subject.public_send endpoint end it "##{endpoint} should return an array" do expect(subject.public_send endpoint).to be_kind_of Array end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
sentimeta-0.1.22 | spec/client_spec.rb |
sentimeta-0.1.21 | spec/client_spec.rb |
sentimeta-0.1.20 | spec/client_spec.rb |