spec/support/shared/examples/timestamp_database_column.rb in metasploit-credential-1.0.0.pre.rails.pre.4.0 vs spec/support/shared/examples/timestamp_database_column.rb in metasploit-credential-1.0.0

- old
+ new

@@ -1,4 +1,4 @@ shared_examples_for 'timestamp database columns' do - it { should have_db_column(:created_at).of_type(:datetime) } - it { should have_db_column(:updated_at).of_type(:datetime) } + 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 \ No newline at end of file