Sha256: ea4088413dc98bca1e243823dbe06a9495a1832bc6c84ca0f9ac091ad357898e
Contents?: true
Size: 739 Bytes
Versions: 6
Compression:
Stored size: 739 Bytes
Contents
require File.dirname(__FILE__) + '/../spec_helper.rb' require 'reek/code_parser' require 'reek/sexp_formatter' include Reek def should_print(example) it "should format #{example} correctly" do sexp = CodeParser.parse_tree_for(example)[0] SexpFormatter.format(sexp).should == example end end describe SexpFormatter do should_print 'self' should_print 'Alpha' should_print 'Alpha::Beta' should_print '@@fred' should_print '`ls`' should_print 'array[0]' should_print 'array[0, 1, 2]' should_print 'obj.method(arg1, arg2)' should_print 'obj.method' should_print '$1' should_print 'o=q.downcase' should_print 'true' should_print '"-#{q}xxx#{z.size}"' should_print '0..5' should_print '0..temp' end
Version data entries
6 entries across 6 versions & 2 rubygems