Sha256: bd48b03bc179590135a434e099f4a8db81ec55f382c364380dffe574c98b8592
Contents?: true
Size: 776 Bytes
Versions: 3
Compression:
Stored size: 776 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, :tumblelog) 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 it 'should provide a hash of attributes and values for API' do Post.new.should respond_to(:attribute_hash) end end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
hexorx-rumblr-0.0.3 | spec/rumblr/post_spec.rb |
hexorx-rumblr-0.0.4 | spec/rumblr/post_spec.rb |
jamescallmebrent-rumblr-0.0.2 | spec/rumblr/post_spec.rb |