Sha256: 873c000d67090a0b87bb6e6bd49ec21f4fa7d45505ea3f35fd1dea2f855b1ade
Contents?: true
Size: 475 Bytes
Versions: 5
Compression:
Stored size: 475 Bytes
Contents
require 'rails_helper' RSpec.describe SpudPost, type: :model do describe '#display_date' do it 'should return a date string' do post = FactoryGirl.create(:spud_post) expect(post.display_date).to eq(post.published_at.strftime('%b %d, %Y')) end end describe '#set_identifier' do it 'should set a random identifier' do post = FactoryGirl.create(:spud_post, identifier: nil) expect(post.identifier).to be_a(String) end end end
Version data entries
5 entries across 5 versions & 1 rubygems