spec/models/preference_spec.rb in patch_ruby-1.2.4 vs spec/models/preference_spec.rb in patch_ruby-1.2.5
- old
+ new
@@ -18,14 +18,20 @@
# Automatically generated by openapi-generator (https://openapi-generator.tech)
# Please update as you see appropriate
describe 'Preference' do
before do
# run before each test
- @instance = Patch::Preference.new
+ @instance = build(:preference)
end
after do
# run after each test
+ end
+
+ it_behaves_like "a generated class" do
+ let(:instance) { @instance }
+ let(:instance_hash) { { id: @instance.id, project: @instance.project.to_hash, allocation_percentage: @instance.allocation_percentage } }
+ let(:nullable_properties) { Set.new }
end
describe 'test an instance of Preference' do
it 'should create an instance of Preference' do
expect(@instance).to be_instance_of(Patch::Preference)