auto_test 0.1.9.6 → 0.1.9.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -150,7 +150,7 @@ module AutoTest
150
150
  session.visit get_login_path
151
151
  user = user.class.find(user.id)
152
152
  hash = Hash.new
153
- hash["#{Test.get_sessions_array.index(session)}:#{session.current_path}"] = Page.all_submits(session).first.value
153
+ hash["#{Test.get_sessions_array.index(session)}:#{session.current_path}"] = get_login_button
154
154
  Test.add_to_action_path hash
155
155
  Page.check_for_error_code(session)
156
156
  index = get_login_names.index(get_unique_login_attribute_name)
data/lib/auto_test.rb CHANGED
@@ -43,6 +43,10 @@ module AutoTest
43
43
  Test.use_fixtures(bool)
44
44
  end
45
45
 
46
+
47
+ def fixtures(*fixtures)
48
+ Test.fixtures(fixtures)
49
+ end
46
50
 
47
51
  def links_to_exclude(*links)
48
52
  Dsl.links_to_exclude(*links)
@@ -1,3 +1,3 @@
1
1
  module AutoTest
2
- VERSION = "0.1.9.6"
2
+ VERSION = "0.1.9.7"
3
3
  end
@@ -11,7 +11,7 @@ describe "Application" do
11
11
 
12
12
  describe "auto_test" do
13
13
  if AutoTest::Test.use_fixtures? then
14
- fixtures :all
14
+ fixtures(*AutoTest::Test.get_fixtures)
15
15
  end
16
16
  it "does test the application automatically" do
17
17
  load "#{Rails.root}/db/test_seeds.rb"
data/lib/test.rb CHANGED
@@ -27,6 +27,14 @@ module AutoTest
27
27
  @@use_fixtures
28
28
  end
29
29
 
30
+ def fixtures(*fixtures)
31
+ @@fixtures = fixtures
32
+ end
33
+
34
+ def get_fixtures
35
+ @@fixtures
36
+ end
37
+
30
38
  def use_fixtures(bool)
31
39
  @@use_fixtures = bool
32
40
  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.9.6
5
+ version: 0.1.9.7
6
6
  platform: ruby
7
7
  authors:
8
8
  - Maike Hargens