Sha256: 3cbd32f1f2ecae60c988815401e269401bdca915b42eac1fa6c711a830fd0fcb
Contents?: true
Size: 671 Bytes
Versions: 65
Compression:
Stored size: 671 Bytes
Contents
require "spec_helper" module SC::BuilderSpecHelper def std_before(target_name) @project = temp_project :builder_tests @target = @project.target_for target_name @manifest = @target.manifest_for :language => :en @manifest.prepare! end def std_after @project.cleanup end def run_builder(filename, &block) @entry = @manifest.add_entry filename # basic entry... @dst_path = @entry.build_path File.exist?(@entry.source_path).should be_true # precondition # Invoke builder yield(@entry, @dst_path) lines = File.readlines(@dst_path) lines.size.should > 0 # make sure something built return lines end end
Version data entries
65 entries across 65 versions & 1 rubygems