Sha256: f33adf95afe5c681645a989ab028988841d4e507c254bf06855c1773d0930039
Contents?: true
Size: 1.66 KB
Versions: 1
Compression:
Stored size: 1.66 KB
Contents
require 'rubygems' require 'infinity_test' begin require 'spec' rescue LoadError require 'rspec' end require 'watchr' def stub_home_config(options) File.should_receive(:expand_path).with('~/.infinity_test').and_return(options[:file]) end def read_and_load_home_config(options) stub_home_config :file => options[:file] @application.load_configuration_file end def application_with(options) application = InfinityTest::Application.new application.config.use(options) application end def application_with_rspec application = InfinityTest::Application.new application.config.use(:test_framework => :rspec) application end def application_with_test_unit application = InfinityTest::Application.new application.config.use(:test_framework => :test_unit) application end def application_with_growl application = InfinityTest::Application.new application.config.notifications :growl application end def new_application(options) application = InfinityTest::Application.new application.config.notifications options[:notifications] if options[:notifications] application.config.use(options) if options application end def continuous_testing_with(application) InfinityTest::ContinuousTesting.new(:application => application) end def image(basename) File.expand_path(File.join(File.dirname(__FILE__), '..', 'images', basename)) end def custom_image(basename) File.expand_path(File.join(File.dirname(__FILE__), 'factories', basename)) end def custom_image_dir File.expand_path(File.join(File.dirname(__FILE__), 'factories', 'images')) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
infinity_test-0.1.0 | spec/spec_helper.rb |