auto_test 0.1.1 → 0.1.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.
- data/lib/authentication.rb +1 -0
- data/lib/auto_test.rb +1 -4
- data/lib/auto_test/version.rb +2 -2
- data/lib/page.rb +1 -1
- data/lib/spec/requests/auto_spec.rb +1 -3
- data/lib/test.rb +4 -7
- metadata +2 -2
data/lib/authentication.rb
CHANGED
data/lib/auto_test.rb
CHANGED
data/lib/auto_test/version.rb
CHANGED
@@ -1,3 +1,3 @@
|
|
1
1
|
module AutoTest
|
2
|
-
VERSION = "0.1.
|
3
|
-
end
|
2
|
+
VERSION = "0.1.2"
|
3
|
+
end
|
data/lib/page.rb
CHANGED
@@ -223,7 +223,7 @@ module AutoTest
|
|
223
223
|
# if present, add the error and print the message
|
224
224
|
def check_for_error_code(session)
|
225
225
|
if session.status_code >= 400 then
|
226
|
-
message = "ERROR : Response : #{
|
226
|
+
message = "ERROR : Response : #{session.status_code}"
|
227
227
|
Error.inc_error(message)
|
228
228
|
puts message
|
229
229
|
end
|
@@ -11,9 +11,7 @@ describe "Application" do
|
|
11
11
|
|
12
12
|
describe "auto_test" do
|
13
13
|
if Test.use_fixtures? then
|
14
|
-
|
15
|
-
fixtures fs
|
16
|
-
end
|
14
|
+
fixtures :all
|
17
15
|
end
|
18
16
|
it "does test the application automatically" do
|
19
17
|
load "#{Rails.root}/db/test_seeds.rb"
|
data/lib/test.rb
CHANGED
@@ -10,6 +10,7 @@ module AutoTest
|
|
10
10
|
Error.init_error
|
11
11
|
Authentication.init_users
|
12
12
|
Authentication.init_login_data
|
13
|
+
init_fixtures
|
13
14
|
init_action_path
|
14
15
|
init_links
|
15
16
|
init_depth
|
@@ -22,14 +23,10 @@ module AutoTest
|
|
22
23
|
init_number_of_test_runs
|
23
24
|
end
|
24
25
|
|
25
|
-
def
|
26
|
-
@@
|
26
|
+
def init_fixtures
|
27
|
+
@@use_fixtures = false
|
27
28
|
end
|
28
|
-
|
29
|
-
def fixture_symbols?
|
30
|
-
@@fixture_symbols
|
31
|
-
end
|
32
|
-
|
29
|
+
|
33
30
|
def use_fixtures?
|
34
31
|
@@use_fixtures
|
35
32
|
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.1.
|
5
|
+
version: 0.1.2
|
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-05 00:00:00 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: faker
|