Sha256: ff86fb919f1ee5f9356e60174ccffffe57ffbc8555c078598cc4f6ae051a0bcb
Contents?: true
Size: 768 Bytes
Versions: 1
Compression:
Stored size: 768 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 = 'bd409d320cfe6fd0e2bf405e47cd2f2c' @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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruby-beautify-0.94.0 | spec/bin/ruby-beautify_spec.rb |