0
0
Fork 0
polecat/spec/document/attributes_spec.rb

14 lines
317 B
Ruby

require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
describe "Document#attributes" do
it "returns a hash with all attributes" do
class FooDoc
include Polecat::Document
field :bar
end
d = FooDoc.new
d.attributes.should == {:bar => Polecat::Document::OPTIONS}
end
end