Sha256: 98f24a46f6b5d82b99a1323c1b2abbae21965496aa18d11b86fbfc0345e4ebb1
Contents?: true
Size: 613 Bytes
Versions: 9
Compression:
Stored size: 613 Bytes
Contents
require_relative "../spec_helper" describe "AssociationExtensions" do include TestingModels around(:each) do |example| with_testing_models do example.run end end it "adds event listener that requires inverse" do expect { TestModel.has_one(:tmhm, :listen=>{:save=>:on_save}) }.to raise_error(ArgumentError, /the association does not have an inverse_of/) end it "does not allow other garbage" do expect { TestModel.has_one(:tmhm,:blarg=>true) }.to raise_error(ArgumentError, /Unknown key/) end end
Version data entries
9 entries across 9 versions & 1 rubygems