Sha256: 129876e64dada9b2d6ddc79dda3fbf7bba3f170adb8e7211a13bf4738a232f53
Contents?: true
Size: 647 Bytes
Versions: 1
Compression:
Stored size: 647 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 it "should not explode if nil is passed" do lambda {Category.create.add_definitions(nil)}.should_not raise_error(NoMethodError) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
datts_right-0.0.23 | spec/datts_right/add_definitions_spec.rb |