lib/watirsplash/generators/templates/new_project/environment.rb.tt in watirsplash-1.4.3 vs lib/watirsplash/generators/templates/new_project/environment.rb.tt in watirsplash-2.0.0.rc1

- old
+ new

@@ -1,13 +1,15 @@ -# Add all your require statements into this file to avoid unnecessary -# code in your spec files +require "rubygems" +require "bundler" +Bundler.setup +require "watirsplash" -<%= load_common_cmd %> +<%= frameworks_banner %> -# By default everything, which is not a spec file, will be loaded from spec directory -# and it's subdirectories -spec_dir = File.join(File.dirname(__FILE__), "spec/**/*.rb") -filtered_ruby_files = Dir.glob(spec_dir).delete_if do |file| - File.basename(file) =~ /.*_spec\.rb$/i -end -require_all filtered_ruby_files +# Load the framework specified by the environment variable WATIRSPLASH_FRAMEWORK or WatirSplash::Util.framework +WatirSplash::Util.load_framework + +require_all File.join(File.dirname(__FILE__), "lib/**/*.rb") require_rel "config.rb" + +# Add all your require statements into this file to avoid unnecessary +# code in your spec files