spec/models/project_spec.rb in patch_ruby-1.13.0 vs spec/models/project_spec.rb in patch_ruby-1.14.0

- old
+ new

@@ -39,13 +39,21 @@ country: @instance.country, developer: @instance.developer, photos: @instance.photos, average_price_per_tonne_cents_usd: @instance.average_price_per_tonne_cents_usd, remaining_mass_g: @instance.remaining_mass_g, - standard: @instance.standard + state: @instance.state, + longitude: @instance.longitude, + latitude: @instance.latitude, + standard: @instance.standard, + mechanism: @instance.mechanism, + technology_type: @instance.technology_type.to_hash, + sdgs: @instance.sdgs.map(&:to_hash) } } - let(:nullable_properties) { Set.new([:photos, :standard, :sdgs]) } + let(:nullable_properties) do + Set.new(%i[photos standard sdgs state latitude longitude tagline]) + end end describe 'test an instance of Project' do it 'should create an instance of Project' do expect(@instance).to be_instance_of(Patch::Project)