# encoding: utf-8 require 'spec_helper' module Adhearsion class CallController module MenuDSL describe MatchCalculator do describe ".build_with_pattern" do it "should return an appropriate subclass instance based on the pattern's class" do expect(MatchCalculator.build_with_pattern(1..2, :main)).to be_an_instance_of RangeMatchCalculator end end end end end end