Sha256: fb7ccd38c679c20c48fa8e483b7db08d7d4b5bdd40b4f3e719785a1bba9cf58b
Contents?: true
Size: 567 Bytes
Versions: 2
Compression:
Stored size: 567 Bytes
Contents
require 'spec_helper' describe 'UntilRewriter' do include TrackUntils, DoRewrite before :each do @until_user = UntilUser.new 10 @methods = sexpify_instance_methods UntilUser @until_rewriter = VirtualKeywords::UntilRewriter.new @my_until_calls = 0 VirtualKeywords::REWRITTEN_KEYWORDS.register_lambda_for_object( @until_user, :until, my_until) end def rewriters [@until_rewriter] end it 'rewrites "until" expressions' do do_rewrite(:until_count_to_value, @until_user) @my_until_calls.should eql 1 end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
virtual_keywords-0.3.1 | lib/spec/until_rewriter_spec.rb |
virtual_keywords-0.3.0 | lib/spec/until_rewriter_spec.rb |