Sha256: e3d1cc59056a0185373debb096de1d8f150794810e4dcc3625a19cbaddeb1bb7
Contents?: true
Size: 883 Bytes
Versions: 2
Compression:
Stored size: 883 Bytes
Contents
require 'spec_helper' describe Stackoverfeeds::SoFeed do describe 'attributes' do it { should respond_to :entry_id } it { should respond_to :published } it { should respond_to :updated } it { should respond_to :title } it { should respond_to :author } it { should respond_to :summary } end describe 'methods' do let(:feeds_entries) do (1..12).each do Stackoverfeeds::SoFeed.make! end end it 'return the MAX permitted size even there are more (with parameter equals 5)' do feeds_entries expect(Stackoverfeeds::SoFeed.public_feeds(5).length).to eq(5) end it 'returns results in the correct order' do feeds_entries entry = Stackoverfeeds::SoFeed.make!(published: Time.now + 2.days) expect(Stackoverfeeds::SoFeed.public_feeds.first.id).to eq(entry.id) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
stackoverfeeds-1.0.1 | spec/dummy/spec/models/so_feed_spec.rb |
stackoverfeeds-1.0.0 | spec/dummy/spec/models/so_feed_spec.rb |