Sha256: dfe74f0081eab10b6d674420379e07be2c8399de3bcb69c1773c4ac393e9bba6
Contents?: true
Size: 716 Bytes
Versions: 4
Compression:
Stored size: 716 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') describe Aspect4r::Model::AdvicesForMethod do it "should be able to get advice by name" do advices = Aspect4r::Model::AdvicesForMethod.new(:test) advice1 = Aspect4r::Model::Advice.new Aspect4r::Model::Advice::BEFORE, :advice_method, :group, :name => :advice1 advices.add advice1 advices[:advice1].should == advice1 end it "should be able to get advice by name String" do advices = Aspect4r::Model::AdvicesForMethod.new(:test) advice1 = Aspect4r::Model::Advice.new Aspect4r::Model::Advice::BEFORE, :advice_method, :group, :name => :advice1 advices.add advice1 advices['advice1'].should == advice1 end end
Version data entries
4 entries across 4 versions & 1 rubygems