Sha256: 73fa1d6fb9489518f194cc8b4aeae840c5570b363adaaa2dbcf3e5970a335b8c
Contents?: true
Size: 526 Bytes
Versions: 5
Compression:
Stored size: 526 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') describe DattsRight, ".update_definitions(hash={})" do before do reset_database end it "should call update_definition the correct number of times" do c = Category.create c.should_receive(:update_definition).with(:mr, :object_type => "integer") c.should_receive(:update_definition).with(:roboto, :object_type => "string") c.update_definitions(:mr => {:object_type => "integer"}, :roboto => {:object_type => "string"}) end end
Version data entries
5 entries across 5 versions & 1 rubygems