Sha256: 1f5466a3975d79c1c38422501eabcb2256934b8bc98d9fed7508270ba3216169
Contents?: true
Size: 938 Bytes
Versions: 3
Compression:
Stored size: 938 Bytes
Contents
require 'spec_helper' describe Feedshub::GithubFeedEntry do describe 'attributes' do it { should respond_to :entry_id } it { should respond_to :published } it { should respond_to :updated } it { should respond_to :url } it { should respond_to :title } it { should respond_to :author } it { should respond_to :content } end describe 'methods' do let(:feeds_entries) do (1..12).each do Feedshub::GithubFeedEntry.make! end end it 'return the MAX permitted size even there are more (with parameter equals 5)' do feeds_entries expect(Feedshub::GithubFeedEntry.public_feeds(5).length).to eq(5) end it 'returns results in the correct order' do feeds_entries entry = Feedshub::GithubFeedEntry.make!(published: Time.now + 2.days) expect(Feedshub::GithubFeedEntry.public_feeds.first.id).to eq(entry.id) end end end
Version data entries
3 entries across 3 versions & 1 rubygems