Sha256: dce032118aa2cf983ca55440c92012542e95d713368df76d30886dd9221f3928

Contents?: true

Size: 385 Bytes

Versions: 4

Compression:

Stored size: 385 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

module Adhearsion
  module MenuDSL
    describe MatchCalculator do
      describe ".build_with_pattern" do
        it "should return an appropriate subclass instance based on the pattern's class" do
          MatchCalculator.build_with_pattern(1..2, :main).should be_an_instance_of RangeMatchCalculator
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
adhearsion-2.0.0.rc4 spec/adhearsion/menu_dsl/match_calculator_spec.rb
adhearsion-2.0.0.rc3 spec/adhearsion/menu_dsl/match_calculator_spec.rb
adhearsion-2.0.0.rc2 spec/adhearsion/menu_dsl/match_calculator_spec.rb
adhearsion-2.0.0.rc1 spec/adhearsion/menu_dsl/match_calculator_spec.rb