auto_test 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -115,6 +115,7 @@ module AutoTest
115
115
  end
116
116
  end
117
117
  end
118
+ return @users
118
119
  end
119
120
 
120
121
  def set_user_data(value)
@@ -32,10 +32,7 @@ module AutoTest
32
32
  Test.use_fixtures(bool)
33
33
  end
34
34
 
35
- def fixture_symbols(*symbols)
36
- Test.fixture_symbols(symbols)
37
- end
38
-
35
+
39
36
  def links_to_exclude(*links)
40
37
  Dsl.links_to_exclude(*links)
41
38
  end
@@ -1,3 +1,3 @@
1
1
  module AutoTest
2
- VERSION = "0.1.1"
3
- end
2
+ VERSION = "0.1.2"
3
+ end
@@ -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 : #{page.status_code}"
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
- Test.fixture_symbols?.each do |fs|
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"
@@ -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 fixture_symbols(*symbols)
26
- @@fixture_symbols = symbols
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.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-04 00:00:00 Z
13
+ date: 2012-10-05 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: faker