Sha256: 8847ccf34c5e51e0b54bcd37cfa90fc1b3c4a307c9a4f1d6fcdf8c26a2b4b269

Contents?: true

Size: 638 Bytes

Versions: 2

Compression:

Stored size: 638 Bytes

Contents

require File.join(File.dirname(__FILE__), "/../spec_helper" )

module Rumblr
  
  describe Post, 'instances' do
    
    it 'should have attributes shared by every Post' do
      Post.new.should respond_to(:id, :url, :type, :unix_timestamp, :date_gmt, :date, :tags, :private)
    end
    
    it 'private attribute should default to false' do
      Post.new.private.should be_false
    end
    
    it 'should provide it private status' do
      Post.new.should respond_to(:private?)
    end
    
    it 'should provide it public status (inverse of private status)' do
      Post.new.should respond_to(:public?)
    end
    
  end
  
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
jamescallmebrent-rumblr-0.0.0 spec/rumblr/post_spec.rb
jamescallmebrent-rumblr-0.0.1 spec/rumblr/post_spec.rb