gaku_testing 0.2.4 → 0.3.0.pre.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4a3e714ef163d6909ab1ea1dedc5490eff985bd1
4
- data.tar.gz: 65709bfe0c4b845986d98501225626a5f04cccfa
3
+ metadata.gz: 63f861c2c4e774d55e75bc13609cecc12726e61c
4
+ data.tar.gz: 3264ef3b17212657030cf919c379e9a08c6b0166
5
5
  SHA512:
6
- metadata.gz: 250316c1d39454a0ac5ec8326c938a9620ddca510faa816789524080f163d3c418dd0400af223dd557585de9a1e4851149519714e93d9e5f68ad419aafbfa579
7
- data.tar.gz: 4ca4e8ca60a0e8532f350c21e55e416e7015f0f77ce8fad0ffde1ff684eb91ee337b026f6a23b852464ce6374fe831fc3c71e6fdea9430ae9c4f1b332e7460fe
6
+ metadata.gz: 461d961c74c851e60772697076879280a16f34204448f149dc5def23a4a592966eb5b846c9d6208421a0f865825d2d126ff6be5c90d71e5f0067e95bf87e5e8e
7
+ data.tar.gz: 484e45282400bebe6951f564ad8ccd157f5b1de7a8da85549b12c7c2b2f1f57538d22d69d024501d5e52f0c0e847b7f14abb888aae24b36c0bdb3fd7b15a7ddb
@@ -2,12 +2,11 @@ require_relative 'spec_helper_base'
2
2
  require 'rubygems'
3
3
 
4
4
  require 'rspec/rails'
5
- require 'rspec/autorun'
6
5
  require 'database_cleaner'
7
6
  require 'active_record/fixtures'
8
7
  require 'factory_girl_rails'
9
8
  require 'ffaker'
10
- require 'rspec/retry'
9
+ # require 'rspec/retry'
11
10
 
12
11
  require 'gaku/testing/env'
13
12
  require 'gaku/testing/factories'
@@ -18,14 +17,14 @@ require 'gaku/core/url_helpers'
18
17
 
19
18
  # require 'gaku/testing/support/features'
20
19
 
21
- # ActiveRecord::Migration.check_pending! if defined?(ActiveRecord::Migration)
20
+ # ActiveRecord::Migration[4.2].check_pending! if defined?(ActiveRecord::Migration[4.2])
22
21
 
23
22
  RSpec.configure do |config|
24
23
 
25
- config.verbose_retry = true
26
- config.default_retry_count = 3
24
+ # config.verbose_retry = true
25
+ # config.default_retry_count = 3
27
26
 
28
- config.before(:each) do
27
+ config.before(:each) do |example|
29
28
  if example.metadata[:js]
30
29
  DatabaseCleaner.strategy = :truncation
31
30
  else
@@ -5,7 +5,7 @@ require 'rspec/rails/extensions'
5
5
  require 'rspec/rails/adapters'
6
6
  # require 'rspec/rails/mocks'
7
7
  require 'rspec/rails/view_rendering'
8
- require 'rspec/rails/example'
8
+ # require 'rspec/rails/example'
9
9
 
10
10
  require 'shoulda-matchers'
11
11
  require 'database_cleaner'
@@ -13,13 +13,13 @@ require 'factory_girl_rails'
13
13
  require 'handy_controller_helpers'
14
14
 
15
15
  require 'gaku/testing/factories'
16
- require 'gaku/testing/controller_helpers'
17
16
  require 'gaku/testing/auth_helpers'
18
17
  require 'gaku/core/url_helpers'
18
+ require 'gaku/testing/controller_helpers'
19
19
 
20
20
  # require 'gaku/testing/support/controllers'
21
21
 
22
- # ActiveRecord::Migration.check_pending! if defined?(ActiveRecord::Migration)
22
+ # ActiveRecord::Migration[4.2].check_pending! if defined?(ActiveRecord::Migration[4.2])
23
23
 
24
24
  RSpec.configure do |config|
25
25
 
@@ -36,10 +36,12 @@ RSpec.configure do |config|
36
36
  DatabaseCleaner.clean
37
37
  end
38
38
 
39
+ config.include Gaku::Testing::ControllerHelpers, type: :controller
39
40
  config.include FactoryGirl::Syntax::Methods
40
41
  config.include Devise::TestHelpers, type: :controller
41
42
  config.include HandyControllerHelpers::AllHelpers, type: :controller
42
43
  config.include Gaku::Core::UrlHelpers
43
44
 
45
+
44
46
  config.alias_it_should_behave_like_to :ensures, 'ensures'
45
47
  end
@@ -15,7 +15,7 @@ require 'shoulda-matchers'
15
15
  require 'gaku/testing/factories'
16
16
 
17
17
  Dir["#{File.dirname(__FILE__)}/support/models/**/*.rb"].each { |f| require f }
18
- # ActiveRecord::Migration.check_pending! if defined?(ActiveRecord::Migration)
18
+ # ActiveRecord::Migration[4.2].check_pending! if defined?(ActiveRecord::Migration[4.2])
19
19
 
20
20
  RSpec.configure do |config|
21
21
 
@@ -1,6 +1,9 @@
1
1
  require_relative 'spec_helper_base'
2
2
 
3
3
  require 'rspec/core'
4
+ require 'rspec/rails/matchers'
5
+ require 'rspec/rails/fixture_support'
6
+
4
7
  require 'rspec/rails/view_rendering'
5
8
  require 'rspec/rails/adapters'
6
- require 'rspec/rails/example'
9
+ require 'rspec/rails/example'
metadata CHANGED
@@ -1,17 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gaku_testing
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.3.0.pre.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rei Kagetsuki
8
8
  - Georgi Tapalilov
9
9
  - Nakaya Yukiharu
10
- - Vassil Kalkov
11
10
  autorequire:
12
11
  bindir: bin
13
12
  cert_chain: []
14
- date: 2015-06-26 00:00:00.000000000 Z
13
+ date: 2017-11-25 00:00:00.000000000 Z
15
14
  dependencies:
16
15
  - !ruby/object:Gem::Dependency
17
16
  name: gaku_core
@@ -19,14 +18,14 @@ dependencies:
19
18
  requirements:
20
19
  - - '='
21
20
  - !ruby/object:Gem::Version
22
- version: 0.2.4
21
+ version: 0.3.0.pre.0
23
22
  type: :runtime
24
23
  prerelease: false
25
24
  version_requirements: !ruby/object:Gem::Requirement
26
25
  requirements:
27
26
  - - '='
28
27
  - !ruby/object:Gem::Version
29
- version: 0.2.4
28
+ version: 0.3.0.pre.0
30
29
  description: Testing helpers used in other engines/modules for GAKU Engine.
31
30
  email: info@gakuengine.com
32
31
  executables: []
@@ -57,15 +56,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
57
56
  requirements:
58
57
  - - ">="
59
58
  - !ruby/object:Gem::Version
60
- version: 2.1.3
59
+ version: '0'
61
60
  required_rubygems_version: !ruby/object:Gem::Requirement
62
61
  requirements:
63
- - - ">="
62
+ - - ">"
64
63
  - !ruby/object:Gem::Version
65
- version: '0'
64
+ version: 1.3.1
66
65
  requirements: []
67
66
  rubyforge_project:
68
- rubygems_version: 2.4.6
67
+ rubygems_version: 2.6.14
69
68
  signing_key:
70
69
  specification_version: 4
71
70
  summary: Shared testing helpers for GAKU Engine