spec/rumblr/post_spec.rb in jamescallmebrent-rumblr-0.0.1 vs spec/rumblr/post_spec.rb in jamescallmebrent-rumblr-0.0.2
- old
+ new
@@ -3,11 +3,11 @@
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)
+ 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
@@ -18,8 +18,12 @@
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