Sha256: 635a98c4108ad415d127f79661165b8652a328862c3edb85608722b24e3387c4
Contents?: true
Size: 938 Bytes
Versions: 1
Compression:
Stored size: 938 Bytes
Contents
require 'minitest/autorun' require 'code_rippa' describe CodeRippa do def fixtures_path File.join(File.expand_path(File.open(".")), "test", "fixtures") end before do Dir.chdir("#{fixtures_path}") end after do File.delete(File.expand_path("out.tex")) Dir.chdir("../..") end describe ".rip_file" do it "should rip a file that is supported" do puts File.expand_path(File.open(".")) CodeRippa.rip_file(File.join("#{File.expand_path(File.open("."))}", "hello.rb"), "rubyblue", "ruby") f1 = File.open("out.tex") f2 = File.open("rip_file.tex") assert (f1.size - f2.size).abs < 300 end end describe ".rip_dir" do it "should rip a directory that is supported" do CodeRippa.rip_dir("ruby_proj/", "rubyblue", "ruby") f1 = File.open("out.tex") f2 = File.open("rip_dir.tex") assert (f1.size - f2.size).abs < 300 end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
code_rippa-0.0.7 | test/test_public_methods.rb |