Sha256: 8961e02f55a091dc279cc2feb10a45d19231f3af64dda72205adc1a242dd1202
Contents?: true
Size: 698 Bytes
Versions: 3
Compression:
Stored size: 698 Bytes
Contents
module Fixtures extend self def xcdatamodeld 'spec/resources/Model.xcdatamodeld' end def expected_dir(language) "spec/resources/expected/#{language}" end def generated_dir(language) "spec/resources/tmp/#{language}" end def generated_file_content(name, language) read_file(generated_dir(language), name) end def expected_content(name, language) read_file(expected_dir(language), name) end def read_file(directory, file) File.read(File.join(directory, file)) end def delete_tmp_files(files, language) files.each { |file| path = File.join(generated_dir(language), file) File.delete(path) if File.exists?(path) } end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
moblues-0.4.0 | spec/resources/fixtures.rb |
moblues-0.3.0 | spec/resources/fixtures.rb |
moblues-0.2.0 | spec/resources/fixtures.rb |