Sha256: c2d64e94a8862999baa045415caa49aed4b75e5e3d9eef1f27f563f31c803e4e
Contents?: true
Size: 1.08 KB
Versions: 8
Compression:
Stored size: 1.08 KB
Contents
$:.unshift("/Library/RubyMotion/lib") require 'motion/project/template/ios' require 'bundler' # this follow from gemspec Bundler.require(:development) # this follow development code require 'ProMotion' Motion::Project::App.setup do |app| app.name = 'ProMotionTest' app.version = "0.99.0" app.redgreen_style = :focused # :focused, :full # Devices app.deployment_target = "6.0" app.device_family = [:ipad] # so we can test split screen capability app.detect_dependencies = true end def all_files App.config.spec_files end def functional_files Dir.glob('./spec/functional/*.rb') end def unit_files Dir.glob('./spec/unit/*.rb') end namespace :spec do task :unit do App.config.spec_mode = true spec_files = all_files spec_files -= functional_files App.config.instance_variable_set("@spec_files", spec_files) Rake::Task["simulator"].invoke end task :functional do App.config.spec_mode = true spec_files = all_files spec_files -= unit_files App.config.instance_variable_set("@spec_files", spec_files) Rake::Task["simulator"].invoke end end
Version data entries
8 entries across 8 versions & 1 rubygems