Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mullermp committed Sep 27, 2023
1 parent 384149c commit b0e82ed
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion spec/aws-record/record/item_operations_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,7 @@ module Record

describe 'validations with ActiveModel::Validations' do
let(:klass_amv) do
Class.new do
::TEST_TABLE = Class.new do
include(Aws::Record)
include(ActiveModel::Validations)
set_table_name('TestTable')
Expand All @@ -682,6 +682,8 @@ module Record
end
end

after { Object.send(:remove_const, :TEST_TABLE) }

it 'will use ActiveModel::Validations :valid? method' do
klass_amv.configure_client(client: stub_client)
item = klass_amv.new
Expand Down

0 comments on commit b0e82ed

Please sign in to comment.