Class: Pinspec::AppProfile
- Inherits:
-
Data
- Object
- Data
- Pinspec::AppProfile
- Defined in:
- lib/pinspec/types.rb
Instance Attribute Summary collapse
-
#attachments ⇒ Object
readonly
Returns the value of attribute attachments.
-
#auth ⇒ Object
readonly
Returns the value of attribute auth.
-
#authz ⇒ Object
readonly
Returns the value of attribute authz.
-
#db_cleaner ⇒ Object
readonly
Returns the value of attribute db_cleaner.
-
#default_locale ⇒ Object
readonly
Returns the value of attribute default_locale.
-
#default_zone ⇒ Object
readonly
Returns the value of attribute default_zone.
-
#factories ⇒ Object
readonly
Returns the value of attribute factories.
-
#flags ⇒ Object
readonly
Returns the value of attribute flags.
-
#model_findings ⇒ Object
readonly
Returns the value of attribute model_findings.
-
#multi_db ⇒ Object
readonly
Returns the value of attribute multi_db.
-
#notes ⇒ Object
readonly
Returns the value of attribute notes.
-
#queue_adapter_in_tests ⇒ Object
readonly
Returns the value of attribute queue_adapter_in_tests.
-
#rails_floor_ok ⇒ Object
readonly
Returns the value of attribute rails_floor_ok.
-
#rails_version ⇒ Object
readonly
Returns the value of attribute rails_version.
-
#ruby_version ⇒ Object
readonly
Returns the value of attribute ruby_version.
-
#schema ⇒ Object
readonly
Returns the value of attribute schema.
-
#soft_delete ⇒ Object
readonly
Returns the value of attribute soft_delete.
-
#spring ⇒ Object
readonly
Returns the value of attribute spring.
-
#tenancy ⇒ Object
readonly
Returns the value of attribute tenancy.
-
#test_stack ⇒ Object
readonly
Returns the value of attribute test_stack.
-
#transactional_fixtures ⇒ Object
readonly
Returns the value of attribute transactional_fixtures.
-
#versioning ⇒ Object
readonly
Returns the value of attribute versioning.
Instance Method Summary collapse
- #after_commit_models ⇒ Object
- #findings(kind) ⇒ Object
- #isolation ⇒ Object
- #isolation_source ⇒ Object
- #rails_floor_ok? ⇒ Boolean
- #warnings ⇒ Object
Instance Attribute Details
#attachments ⇒ Object (readonly)
Returns the value of attribute attachments
196 197 198 |
# File 'lib/pinspec/types.rb', line 196 def @attachments end |
#auth ⇒ Object (readonly)
Returns the value of attribute auth
196 197 198 |
# File 'lib/pinspec/types.rb', line 196 def auth @auth end |
#authz ⇒ Object (readonly)
Returns the value of attribute authz
196 197 198 |
# File 'lib/pinspec/types.rb', line 196 def authz @authz end |
#db_cleaner ⇒ Object (readonly)
Returns the value of attribute db_cleaner
196 197 198 |
# File 'lib/pinspec/types.rb', line 196 def db_cleaner @db_cleaner end |
#default_locale ⇒ Object (readonly)
Returns the value of attribute default_locale
196 197 198 |
# File 'lib/pinspec/types.rb', line 196 def default_locale @default_locale end |
#default_zone ⇒ Object (readonly)
Returns the value of attribute default_zone
196 197 198 |
# File 'lib/pinspec/types.rb', line 196 def default_zone @default_zone end |
#factories ⇒ Object (readonly)
Returns the value of attribute factories
196 197 198 |
# File 'lib/pinspec/types.rb', line 196 def factories @factories end |
#flags ⇒ Object (readonly)
Returns the value of attribute flags
196 197 198 |
# File 'lib/pinspec/types.rb', line 196 def flags @flags end |
#model_findings ⇒ Object (readonly)
Returns the value of attribute model_findings
196 197 198 |
# File 'lib/pinspec/types.rb', line 196 def model_findings @model_findings end |
#multi_db ⇒ Object (readonly)
Returns the value of attribute multi_db
196 197 198 |
# File 'lib/pinspec/types.rb', line 196 def multi_db @multi_db end |
#notes ⇒ Object (readonly)
Returns the value of attribute notes
196 197 198 |
# File 'lib/pinspec/types.rb', line 196 def notes @notes end |
#queue_adapter_in_tests ⇒ Object (readonly)
Returns the value of attribute queue_adapter_in_tests
196 197 198 |
# File 'lib/pinspec/types.rb', line 196 def queue_adapter_in_tests @queue_adapter_in_tests end |
#rails_floor_ok ⇒ Object (readonly)
Returns the value of attribute rails_floor_ok
196 197 198 |
# File 'lib/pinspec/types.rb', line 196 def rails_floor_ok @rails_floor_ok end |
#rails_version ⇒ Object (readonly)
Returns the value of attribute rails_version
196 197 198 |
# File 'lib/pinspec/types.rb', line 196 def rails_version @rails_version end |
#ruby_version ⇒ Object (readonly)
Returns the value of attribute ruby_version
196 197 198 |
# File 'lib/pinspec/types.rb', line 196 def ruby_version @ruby_version end |
#schema ⇒ Object (readonly)
Returns the value of attribute schema
196 197 198 |
# File 'lib/pinspec/types.rb', line 196 def schema @schema end |
#soft_delete ⇒ Object (readonly)
Returns the value of attribute soft_delete
196 197 198 |
# File 'lib/pinspec/types.rb', line 196 def soft_delete @soft_delete end |
#spring ⇒ Object (readonly)
Returns the value of attribute spring
196 197 198 |
# File 'lib/pinspec/types.rb', line 196 def spring @spring end |
#tenancy ⇒ Object (readonly)
Returns the value of attribute tenancy
196 197 198 |
# File 'lib/pinspec/types.rb', line 196 def tenancy @tenancy end |
#test_stack ⇒ Object (readonly)
Returns the value of attribute test_stack
196 197 198 |
# File 'lib/pinspec/types.rb', line 196 def test_stack @test_stack end |
#transactional_fixtures ⇒ Object (readonly)
Returns the value of attribute transactional_fixtures
196 197 198 |
# File 'lib/pinspec/types.rb', line 196 def transactional_fixtures @transactional_fixtures end |
#versioning ⇒ Object (readonly)
Returns the value of attribute versioning
196 197 198 |
# File 'lib/pinspec/types.rb', line 196 def versioning @versioning end |
Instance Method Details
#after_commit_models ⇒ Object
210 211 212 |
# File 'lib/pinspec/types.rb', line 210 def after_commit_models findings(:after_commit) end |
#findings(kind) ⇒ Object
206 207 208 |
# File 'lib/pinspec/types.rb', line 206 def findings(kind) model_findings.select { |f| f.kind == kind } end |
#isolation ⇒ Object
218 219 220 221 222 223 224 |
# File 'lib/pinspec/types.rb', line 218 def isolation case db_cleaner when :truncation then :truncation when :transaction then :transaction else transactional_fixtures == false ? :truncation : :transaction end end |
#isolation_source ⇒ Object
226 227 228 229 230 231 |
# File 'lib/pinspec/types.rb', line 226 def isolation_source case db_cleaner when :truncation, :transaction then "DatabaseCleaner.strategy = #{db_cleaner.inspect}" else "use_transactional_fixtures = #{transactional_fixtures.inspect}" end end |
#rails_floor_ok? ⇒ Boolean
214 215 216 |
# File 'lib/pinspec/types.rb', line 214 def rails_floor_ok? rails_floor_ok == true end |
#warnings ⇒ Object
233 234 235 236 237 238 239 240 241 242 243 244 |
# File 'lib/pinspec/types.rb', line 233 def warnings [ multi_db_warning, floor_warning, isolation_warning, queue_adapter_warning, apartment_warning, default_scope_warning, , spring_warning ].compact end |