Sha256: 33bd95c41bdc124f20d786759577c1ee6fd8486178b61cc6f20e6442c19817eb

Contents?: true

Size: 255 Bytes

Versions: 49

Compression:

Stored size: 255 Bytes

Contents

RSpec.shared_examples_for 'timestamp database columns' do
  it { is_expected.to have_db_column(:created_at).of_type(:datetime).with_options(null: false) }
  it { is_expected.to have_db_column(:updated_at).of_type(:datetime).with_options(null: false) }
end

Version data entries

49 entries across 49 versions & 1 rubygems

Version Path
metasploit-credential-6.0.11 spec/support/shared/examples/timestamp_database_column.rb
metasploit-credential-6.0.10 spec/support/shared/examples/timestamp_database_column.rb
metasploit-credential-6.0.9 spec/support/shared/examples/timestamp_database_column.rb
metasploit-credential-6.0.8 spec/support/shared/examples/timestamp_database_column.rb
metasploit-credential-6.0.7 spec/support/shared/examples/timestamp_database_column.rb
metasploit-credential-6.0.6 spec/support/shared/examples/timestamp_database_column.rb
metasploit-credential-6.0.5 spec/support/shared/examples/timestamp_database_column.rb
metasploit-credential-6.0.4 spec/support/shared/examples/timestamp_database_column.rb
metasploit-credential-6.0.3 spec/support/shared/examples/timestamp_database_column.rb
metasploit-credential-6.0.2 spec/support/shared/examples/timestamp_database_column.rb
metasploit-credential-6.0.1 spec/support/shared/examples/timestamp_database_column.rb
metasploit-credential-6.0.0 spec/support/shared/examples/timestamp_database_column.rb
metasploit-credential-5.0.9 spec/support/shared/examples/timestamp_database_column.rb
metasploit-credential-5.0.8 spec/support/shared/examples/timestamp_database_column.rb
metasploit-credential-5.0.7 spec/support/shared/examples/timestamp_database_column.rb
metasploit-credential-5.0.6 spec/support/shared/examples/timestamp_database_column.rb
metasploit-credential-5.0.5 spec/support/shared/examples/timestamp_database_column.rb
metasploit-credential-5.0.4 spec/support/shared/examples/timestamp_database_column.rb
metasploit-credential-5.0.3 spec/support/shared/examples/timestamp_database_column.rb
metasploit-credential-5.0.2 spec/support/shared/examples/timestamp_database_column.rb