Sha256: 73919a98a72d15b0dd5a09496319188b55c2f02adbd3a260689000ef84900d4f

Contents?: true

Size: 273 Bytes

Versions: 3

Compression:

Stored size: 273 Bytes

Contents

require 'spec_helper'
module Sexpr::Matcher
  describe Rule, "match?" do

    let(:rule){ Rule.new :hello, self }

    def match?(seen)
      @seen = seen
    end

    it 'delegates to the defn' do
      rule.match?([:foo])
      @seen.should eq([:foo])
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sexpr-1.1.0 spec/unit/matcher/rule/test_match_q.rb
sexpr-1.0.0 spec/unit/matcher/rule/test_match_q.rb
sexpr-0.6.0 spec/unit/matcher/rule/test_match_q.rb