pludoni-spec 0.0.2 → 0.1.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: 02177e74bd70cb01ca222cbb2ba5354e5e2a52d1
4
- data.tar.gz: d37f3b1dd85e3f8d54d378311aa59f4d3d23c037
3
+ metadata.gz: c9da05e3c7a5c9555063facca5ffb7f9ec53db44
4
+ data.tar.gz: bc4b003c1caaa2d1254c3fd4915ebfa0f3eb01c9
5
5
  SHA512:
6
- metadata.gz: 04babc1a7d7abc06c330886d660e83873e7232ac7a1db661be6f14b77e52646992992729de57b488a8d34da98affbe3b91ed111faca8fcc200663e11af767002
7
- data.tar.gz: cb1c59273ba96ab7c974f6c15916006e4f23d063aecfaee65450f80272ded6ca4ea27aaf339f9012de22c5e0c66d7707f4b33033a693890a1a514917393651b5
6
+ metadata.gz: 60ada780124949ce1336360d6e239bfc72283d3a85212d93d5e01fd362ec4e66b427d417d94874316853f04782416ecc4b2c92915bdcb3a5d9b2bc3271bb2982
7
+ data.tar.gz: 8022c1eaf47c89ef3118a86f6c71b5fe74adabd1c3f53a5a9234f4bf646d6c7b9f17d08f6f1fb1f701ebfa6d771f4c00c3711724c03eb1d1fe6897d4e2c6026c
@@ -4,11 +4,11 @@ RSpec::Matchers.define :be_valid do
4
4
  actual.valid?
5
5
  end
6
6
 
7
- failure_message_for_should do |actual|
7
+ failure_message do |actual|
8
8
  "expected that #{actual} would be valid (errors: #{actual.errors.full_messages})"
9
9
  end
10
10
 
11
- failure_message_for_should_not do |actual|
11
+ failure_message_when_negated do |actual|
12
12
  "expected that #{actual} would not be valid"
13
13
  end
14
14
 
@@ -36,9 +36,9 @@ module PoltergeistHelper
36
36
  # 404 Fehlern vorbeugen -> Wir haben paperclip tmp in usage, also werden
37
37
  # hochgeladene Logos nicht angezeigt
38
38
  # -> 404 -> Test Failure
39
- def stub_logo!(object,method=:logo)
39
+ def stub_logo!(object,method=:logo,default='/assets/missing.png')
40
40
  logo = Object.new
41
- def logo.url(*whatever) "" end
41
+ def logo.url(*whatever) default end
42
42
  def logo.method_missing(name,*args) true end
43
43
  object.any_instance.stub method => logo, :"#{method}_file_name" => "foo.png"
44
44
  end
@@ -1,4 +1,4 @@
1
- if `whoami`["jenkins"]
1
+ if `whoami`["jenkins"] || ENV['CI']
2
2
  require 'simplecov'
3
3
  # require 'simplecov-rcov-text'
4
4
  # class SimpleCov::Formatter::MergedFormatter
@@ -0,0 +1,5 @@
1
+ RSpec.configure do |config|
2
+ config.expect_with(:rspec) { |c| c.syntax = :should }
3
+ config.mock_with(:rspec) { |c| c.syntax = :should }
4
+ config.infer_spec_type_from_file_location!
5
+ end
@@ -1,14 +1,19 @@
1
1
  require "pludoni/capybara"
2
2
  RSpec.configure do |c|
3
- c.treat_symbols_as_metadata_keys_with_true_values = true
3
+ if RSpec::Core::Version::STRING < '3.0.0'
4
+ c.treat_symbols_as_metadata_keys_with_true_values = true
5
+ end
4
6
  end
5
7
  require "timecop"
6
- require 'i18n/missing_translations'
7
- # require 'rspec/retry'
8
- at_exit { I18n.missing_translations.dump }
8
+ begin
9
+ require 'i18n/missing_translations'
10
+ # require 'rspec/retry'
11
+ at_exit { I18n.missing_translations.dump }
12
+ rescue LoadError
13
+ end
9
14
  Dir[Rails.root.join("spec/support/**/*.rb")].each {|f| require f}
10
15
 
11
- ActiveRecord::Migration.check_pending! if defined?(ActiveRecord::Migration)
16
+ #ActiveRecord::Migration.check_pending! if defined?(ActiveRecord::Migration)
12
17
 
13
18
 
14
19
  RSpec.configure do |config|
@@ -68,8 +73,11 @@ end
68
73
 
69
74
 
70
75
  silence_warnings do
76
+ begin
71
77
  require "bcrypt"
72
78
  BCrypt::Engine::DEFAULT_COST = BCrypt::Engine::MIN_COST
79
+ rescue LoadError
80
+ end
73
81
  end
74
82
 
75
83
  require "pludoni/mail_helper"
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "pludoni-spec"
7
- spec.version = "0.0.2"
7
+ spec.version = "0.1.0"
8
8
  spec.authors = ["Stefan Wienert"]
9
9
  spec.email = ["stefan.wienert@pludoni.de"]
10
10
  spec.description = %q{Alles was man so braucht zum testen}
@@ -19,15 +19,11 @@ Gem::Specification.new do |spec|
19
19
 
20
20
  spec.add_runtime_dependency "poltergeist"
21
21
  spec.add_runtime_dependency "simplecov"
22
+ spec.add_runtime_dependency "rspec"
22
23
  spec.add_runtime_dependency 'timecop'
23
- # spec.add_runtime_dependency "guard-rspec"
24
24
  spec.add_runtime_dependency "capybara"
25
- spec.add_runtime_dependency "poltergeist"
26
- # spec.add_runtime_dependency "rb-inotify"
27
25
  spec.add_runtime_dependency "pry-rails"
28
- # spec.add_runtime_dependency "rspec-retry"
29
26
  spec.add_runtime_dependency "database_cleaner"
30
- spec.add_runtime_dependency "i18n-missing_translations"
31
27
  spec.add_runtime_dependency 'action_mailer_cache_delivery'
32
28
 
33
29
  spec.add_development_dependency "bundler", "~> 1.3"
metadata CHANGED
@@ -1,167 +1,153 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pludoni-spec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefan Wienert
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-18 00:00:00.000000000 Z
11
+ date: 2017-02-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: poltergeist
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: simplecov
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
- name: timecop
42
+ name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
- name: capybara
56
+ name: timecop
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
- name: poltergeist
70
+ name: capybara
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - '>='
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - '>='
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: pry-rails
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - '>='
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - '>='
94
+ - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: database_cleaner
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - '>='
102
- - !ruby/object:Gem::Version
103
- version: '0'
104
- type: :runtime
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - '>='
109
- - !ruby/object:Gem::Version
110
- version: '0'
111
- - !ruby/object:Gem::Dependency
112
- name: i18n-missing_translations
113
- requirement: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - '>='
101
+ - - ">="
116
102
  - !ruby/object:Gem::Version
117
103
  version: '0'
118
104
  type: :runtime
119
105
  prerelease: false
120
106
  version_requirements: !ruby/object:Gem::Requirement
121
107
  requirements:
122
- - - '>='
108
+ - - ">="
123
109
  - !ruby/object:Gem::Version
124
110
  version: '0'
125
111
  - !ruby/object:Gem::Dependency
126
112
  name: action_mailer_cache_delivery
127
113
  requirement: !ruby/object:Gem::Requirement
128
114
  requirements:
129
- - - '>='
115
+ - - ">="
130
116
  - !ruby/object:Gem::Version
131
117
  version: '0'
132
118
  type: :runtime
133
119
  prerelease: false
134
120
  version_requirements: !ruby/object:Gem::Requirement
135
121
  requirements:
136
- - - '>='
122
+ - - ">="
137
123
  - !ruby/object:Gem::Version
138
124
  version: '0'
139
125
  - !ruby/object:Gem::Dependency
140
126
  name: bundler
141
127
  requirement: !ruby/object:Gem::Requirement
142
128
  requirements:
143
- - - ~>
129
+ - - "~>"
144
130
  - !ruby/object:Gem::Version
145
131
  version: '1.3'
146
132
  type: :development
147
133
  prerelease: false
148
134
  version_requirements: !ruby/object:Gem::Requirement
149
135
  requirements:
150
- - - ~>
136
+ - - "~>"
151
137
  - !ruby/object:Gem::Version
152
138
  version: '1.3'
153
139
  - !ruby/object:Gem::Dependency
154
140
  name: rake
155
141
  requirement: !ruby/object:Gem::Requirement
156
142
  requirements:
157
- - - '>='
143
+ - - ">="
158
144
  - !ruby/object:Gem::Version
159
145
  version: '0'
160
146
  type: :development
161
147
  prerelease: false
162
148
  version_requirements: !ruby/object:Gem::Requirement
163
149
  requirements:
164
- - - '>='
150
+ - - ">="
165
151
  - !ruby/object:Gem::Version
166
152
  version: '0'
167
153
  description: Alles was man so braucht zum testen
@@ -171,7 +157,7 @@ executables: []
171
157
  extensions: []
172
158
  extra_rdoc_files: []
173
159
  files:
174
- - .gitignore
160
+ - ".gitignore"
175
161
  - Gemfile
176
162
  - LICENSE.txt
177
163
  - README.md
@@ -181,6 +167,7 @@ files:
181
167
  - lib/pludoni/coverage.rb
182
168
  - lib/pludoni/database-cleaner.rb
183
169
  - lib/pludoni/mail_helper.rb
170
+ - lib/pludoni/rspec3-migration.rb
184
171
  - lib/pludoni/spec-helper.rb
185
172
  - lib/pludoni/spec.rb
186
173
  - lib/pludoni/thread-patch.rb
@@ -197,17 +184,17 @@ require_paths:
197
184
  - lib
198
185
  required_ruby_version: !ruby/object:Gem::Requirement
199
186
  requirements:
200
- - - '>='
187
+ - - ">="
201
188
  - !ruby/object:Gem::Version
202
189
  version: '0'
203
190
  required_rubygems_version: !ruby/object:Gem::Requirement
204
191
  requirements:
205
- - - '>='
192
+ - - ">="
206
193
  - !ruby/object:Gem::Version
207
194
  version: '0'
208
195
  requirements: []
209
196
  rubyforge_project:
210
- rubygems_version: 2.1.11
197
+ rubygems_version: 2.4.8
211
198
  signing_key:
212
199
  specification_version: 4
213
200
  summary: Alles was man so braucht zum testen