Sha256: ec75b7c45d3e29fd1bec8bf7e83abebdf7161fef015b66309fcdee1677f370c8
Contents?: true
Size: 684 Bytes
Versions: 3
Compression:
Stored size: 684 Bytes
Contents
require 'test_helper' class ImpressionizerGeneratorTest < ActiveSupport::TestCase def setup FileUtils.mkdir_p(fake_rails_root) @original_files = file_list end def teardown FileUtils.rm_r(fake_rails_root) end test 'generates_correct_file_name' do # TODO: make it run! # # run_generator(["impressionizer"], :destination => fake_rails_root) # new_file = (file_list - @original_files).first # assert_equal "definition.txt", File.basename(new_file) assert true end private def fake_rails_root File.join(File.dirname(__FILE__), 'rails_root') end def file_list Dir.glob(File.join(fake_rails_root, "*")) end end
Version data entries
3 entries across 3 versions & 1 rubygems