Sha256: 648998fb227ffd5280c0414f8b4834af4b6fc6d6f518283abb6d9158019770af
Contents?: true
Size: 796 Bytes
Versions: 4
Compression:
Stored size: 796 Bytes
Contents
# one big spec (for now). require 'spec_helper.rb' require 'digest/md5' # this is so simple, it's stupid. I basically used the 'example.rb' file while # testing this indenting method. So I've visually approved of the output, and # I've run that through md5. Then we just run our build, gather that md5 and # compare the two. # Eventually, I should break out the code into smaller chunks so I can identify # which component is breaking down. describe "Ruby Beautify" do before (:all) do @good_md5_sum = Digest::MD5.hexdigest File.read('spec/example_beautified.rb') @bad_file = 'spec/example.rb' @bin = "#{Dir.pwd}/bin/ruby-beautify" end it 'will work' do md5_sum = Digest::MD5.hexdigest `bundle exec #{@bin} #{@bad_file}` expect(md5_sum).to eq @good_md5_sum end end
Version data entries
4 entries across 4 versions & 1 rubygems