Sha256: 6c0d6dd7ffa1513b69253be44113c9142b3ff48d9f7b8bff1a3373c4368d9fbf
Contents?: true
Size: 722 Bytes
Versions: 1
Compression:
Stored size: 722 Bytes
Contents
require 'spec_helper' describe MultidispatchDSL::Generator do context '.method_name_from_declaration' do specify { should == "execute_empty" } specify { subject(Fixnum).should == "execute_fixnum" } specify { subject(Fixnum, String).should == "execute_fixnum_string" } specify { subject(described_class).should == "execute_multidispatch_dsl_generator" } def subject(*declaration) described_class.method_name_from_declaration("execute", declaration) end end context '.declaration_from_args' do specify { should = "()" } specify { subject(Fixnum, String).should == "(Fixnum, String)" } def subject(*args) described_class.declaration_from_args(args) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
multidispatch_dsl-0.1.0 | spec/lib/multidispatch_dsl_generator_spec.rb |