lib/gem_suit/cli/application.rb in gem_suit-0.1.1 vs lib/gem_suit/cli/application.rb in gem_suit-0.1.2

- old
+ new

@@ -93,11 +93,11 @@ def files(action) assert_suit_dir log "(in #{File.expand_path("")})" - require "suit/shared/test/suit_application.rb" + require File.expand_path("suit/shared/test/suit_application.rb") application = SuitApplication.new :validate_root_path => false, :verbose => options.verbose? Dir["suit/rails-*/dummy"].each do |rails_root| application.root_path = rails_root application.send :"#{action}_all" end @@ -110,10 +110,10 @@ rails_version = (options.rails_version || major_rails_versions.last).to_i root_path = File.expand_path "suit/rails-#{rails_version}/dummy" command = {2 => "script/#{command}", 3 => "rails #{command.to_s[0, 1]}"}[rails_version] - require "suit/rails-#{rails_version}/dummy/test/suit_application.rb" + require File.expand_path("suit/rails-#{rails_version}/dummy/test/suit_application.rb") SuitApplication.new(:verbose => options.verbose?).bundle_install system "cd #{root_path} && RAILS_ENV=#{environment} #{command} #{"-p #{options.port}" if options.port}" end \ No newline at end of file