Sha256: e669235613e7771674bc48ce33b5436025500fe6a47ecb0a88bc8d2fcf7bd8e4
Contents?: true
Size: 1.12 KB
Versions: 3
Compression:
Stored size: 1.12 KB
Contents
unless defined?(Motion::Project::Config) raise "This file must be required within a RubyMotion project Rakefile." end ## Extend Motion config to include our spec helper module Motion; module Project; class Config alias_method :spec_files_before_stump, :spec_files def spec_files core = Dir.chdir(motiondir + '/lib/motion') { (['spec.rb'] + Dir.glob(File.join('spec', 'helpers', '*.rb'))).map { |x| File.expand_path(x) } } (core + [File.join(File.dirname(__FILE__), 'stump/stump_spec_helper.rb')] + spec_files_before_stump).uniq end end end; end ## Include stump in dev mode Motion::Project::App.setup do |app| app.development do [ File.join(File.dirname(__FILE__), 'stump/version.rb'), File.join(File.dirname(__FILE__), 'stump/metaid.rb'), File.join(File.dirname(__FILE__), 'stump/stub.rb'), File.join(File.dirname(__FILE__), 'stump/mocks.rb'), File.join(File.dirname(__FILE__), 'stump/mock.rb'), File.join(File.dirname(__FILE__), 'stump/proxy.rb') ].reverse.each {|f| app.files.unshift(f) } end end ## Include supports for define_method require 'motion-define-method'
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
motion-stump-0.1.2 | lib/motion-stump.rb |
motion-stump-0.1.1 | lib/motion-stump.rb |
motion-stump-0.1.0 | lib/motion-stump.rb |