Sha256: 3f44375239501c40620e8642ee591cc05a11615e00e15c427ecdb8e23d557a7b
Contents?: true
Size: 264 Bytes
Versions: 3
Compression:
Stored size: 264 Bytes
Contents
require 'spec_helper' module Sexpr::Matcher describe Rule, "eat" do let(:rule){ Rule.new :hello, self } def eat(seen) @seen = seen end it 'delegates to the defn' do rule.eat([: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_eat.rb |
sexpr-1.0.0 | spec/unit/matcher/rule/test_eat.rb |
sexpr-0.6.0 | spec/unit/matcher/rule/test_eat.rb |