Sha256: 0412c6564ad755ee09e9e3149097b751e4b350766cc5a7965038404ba48ebe10
Contents?: true
Size: 506 Bytes
Versions: 2
Compression:
Stored size: 506 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') describe DattsRight, ".add_definitions(hash)" do before do reset_database end it "should add a definition to the existing definition" do c = Category.create c.should_receive(:add_definition).with(:robot, :object_type => "text") c.should_receive(:add_definition).with(:another, :object_type => "string") c.add_definitions(:robot => {:object_type => "text"}, :another => {:object_type => "string"}) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
datts_right-0.0.22 | spec/datts_right/add_definitions_spec.rb |
datts_right-0.0.21 | spec/datts_right/add_definitions_spec.rb |