Sha256: 75eb5feb99577f0ed9b2d34debd9b09f52081daa92d2df064f6f08054569c0e7
Contents?: true
Size: 446 Bytes
Versions: 21
Compression:
Stored size: 446 Bytes
Contents
require 'spec_helper' describe ButterCMS::ButterCollection do let(:json) { {"data" => ["foo"], "meta" => {}} } let(:klass) { double('klass', :new => 'bar') } it 'implements #meta' do collection = ButterCMS::ButterCollection.new(klass, json) expect(collection.meta).to be_a(OpenStruct) end it 'implements #count' do collection = ButterCMS::ButterCollection.new(klass, json) expect(collection.count).to eq 1 end end
Version data entries
21 entries across 21 versions & 1 rubygems