auto_test 0.0.9.5.1 → 0.0.9.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,3 @@
1
1
  module AutoTest
2
- VERSION = "0.0.9.5.1"
2
+ VERSION = "0.0.9.5.2"
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("#{Rails.root}/config/environment", __FILE__)
3
+ require File.expand_path("config/environment", __FILE__)
4
4
  require "watir-webdriver"
5
5
 
6
6
  def login(login_attributes, browser, user)
@@ -28,7 +28,7 @@ end
28
28
 
29
29
  def init_user_inputs
30
30
  @user_inputs = Hash.new
31
- file = File.new("#{Rails.root}/log/user_input.log", "r")
31
+ file = File.new("log/user_input.log", "r")
32
32
  while line = file.gets do
33
33
  b = line.split(/:/,2)
34
34
  @user_inputs["#{b[0].strip}"] = b[1].chop
@@ -3,7 +3,7 @@ describe "Application" do
3
3
  it "simulates the error" do
4
4
  path = %x(gem which auto_test)
5
5
  path = path[0..path.size-15]
6
- %x(ruby '#{path}/simulation.rb')
6
+ %x(ruby "#{path}/simulation.rb")
7
7
  end
8
8
  end
9
9
  end
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.5.1
5
+ version: 0.0.9.5.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Maike Hargens