test/test_joint.rb in joint-0.4 vs test/test_joint.rb in joint-0.5

- old
+ new

@@ -32,11 +32,11 @@ end def grid @grid ||= Mongo::Grid.new(MongoMapper.database) end - + def key_names [:id, :name, :type, :size] end end @@ -64,9 +64,13 @@ should "add keys for each attachment" do key_names.each do |key| Asset.keys.should include("image_#{key}") Asset.keys.should include("file_#{key}") end + end + + should "add memoized accessors module" do + Asset.attachment_accessor_module.should be_instance_of(Module) end context "with inheritance" do should "add attachment to attachment_names" do BaseModel.attachment_names.should == Set.new([:file]) \ No newline at end of file