auto_test 0.0.9.4.4 → 0.0.9.4.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module AutoTest
2
- VERSION = "0.0.9.4.4"
2
+ VERSION = "0.0.9.4.5"
3
3
  end
data/lib/simulation.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  ENV["RAILS_ENV"] ||= "test"
3
- #require File.expand_path("config/environment", __FILE__)
3
+ require File.expand_path("#{Rails.root}/config/environment", __FILE__)
4
4
  require "watir-webdriver"
5
5
 
6
6
  def login(login_attributes, browser, user)
@@ -48,7 +48,8 @@ namespace :auto_test do
48
48
  # puts "Error path reduced.There are #{n} paths to be visited."
49
49
  puts "Press Enter to see the path in Firefox! "
50
50
  STDIN.gets
51
- sh "ruby '#{path}/simulation.rb'"
51
+ sh "rspec #{path}/../spec/requests/simulation_spec.rb -o '#{path}/../../log/simulation.txt'"
52
+ sh "rm '#{path}/../../log/simulation.txt"
52
53
  end
53
54
 
54
55
 
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: auto_test
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.9.4.4
5
+ version: 0.0.9.4.5
6
6
  platform: ruby
7
7
  authors:
8
8
  - Maike Hargens