auto_test 0.1.9.8.5 → 0.1.9.8.6
Sign up to get free protection for your applications and to get access to all the features.
data/lib/auto_test/version.rb
CHANGED
@@ -10,9 +10,9 @@ describe "Application" do
|
|
10
10
|
fixtures(*AutoTest::Test.get_fixtures)
|
11
11
|
end
|
12
12
|
it "reduces the path to the error" do
|
13
|
+
load "#{Rails.root}/db/test_seeds.rb"
|
13
14
|
DatabaseCleaner.strategy = :transaction
|
14
15
|
DatabaseCleaner.start
|
15
|
-
load "#{Rails.root}/db/test_seeds.rb"
|
16
16
|
init_path
|
17
17
|
init_sessions
|
18
18
|
init_sessions_array
|
@@ -711,7 +711,7 @@ end
|
|
711
711
|
def clean_and_seed_db
|
712
712
|
DatabaseCleaner.clean
|
713
713
|
DatabaseCleaner.start
|
714
|
-
load "#{Rails.root}/db/test_seeds.rb"
|
714
|
+
#load "#{Rails.root}/db/test_seeds.rb"
|
715
715
|
end
|
716
716
|
|
717
717
|
def init_err_file
|
@@ -78,8 +78,12 @@ describe "Application" do
|
|
78
78
|
line_parts = line.split(":")
|
79
79
|
session_index = line_parts[0].to_i
|
80
80
|
id = line_parts[1].to_i
|
81
|
-
|
82
|
-
|
81
|
+
begin
|
82
|
+
user[session_index] = AutoTest::Authentication.user_class.find(id)
|
83
|
+
rescue
|
84
|
+
id_before = user[session_index].id
|
85
|
+
user[session_index] = AutoTest::Authentication.user_class.find(:first, :conditions => "id != #{id_before}")
|
86
|
+
end
|
83
87
|
end
|
84
88
|
end
|
85
89
|
end
|
@@ -88,7 +92,7 @@ end
|
|
88
92
|
|
89
93
|
def login(browser, user)
|
90
94
|
if AutoTest::Authentication.use_db_users then
|
91
|
-
Authentication.get_login_attributes.each do |field|
|
95
|
+
AutoTest::Authentication.get_login_attributes.each do |field|
|
92
96
|
browser.text_field(:id => field[1]).set user.send(field[0].to_sym)
|
93
97
|
end
|
94
98
|
sleep 1
|
data/lib/tasks/auto_test.rb
CHANGED
@@ -9,7 +9,7 @@ namespace :auto_test do
|
|
9
9
|
puts "Running auto_test..."
|
10
10
|
sh "rspec '#{path}/spec/requests/auto_spec.rb' -o '#{path}/../log/rspec.txt'"
|
11
11
|
begin
|
12
|
-
sh "rm 'log/new_path.log"
|
12
|
+
sh "rm 'log/new_path.log'"
|
13
13
|
rescue
|
14
14
|
end
|
15
15
|
Rake::Task["auto_test:error_calc"].invoke
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: auto_test
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.1.9.8.
|
5
|
+
version: 0.1.9.8.6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Maike Hargens
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2012-10-
|
13
|
+
date: 2012-10-28 00:00:00 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: faker
|