<commit_before>require 'spec_helper'

describe ::Trax::Model::Attributes::Types::Struct, :postgres => true do
  subject{ ::Ecommerce::Products::MensShoes::Fields::CustomFields }

  it { expect(subject.new.primary_utility).to eq "Skateboarding" }
  it { expect(subject.new.sole_material).to eq "" }

  context "attribute definition" do
    subject { ::Ecommerce::ShippingAttributes.new }

    context "model_accessors (delegators)" do
      it {
        ::Ecommerce::ShippingAttributes.fields[:specifics].properties.each do |_property|
          expect(subject.__send__(_property)).to eq subject.specifics.__send__(_property)
        end<commit_msg>should be nil not blank string<commit_after>require 'spec_helper'

describe ::Trax::Model::Attributes::Types::Struct, :postgres => true do
  subject{ ::Ecommerce::Products::MensShoes::Fields::CustomFields }

  it { expect(subject.new.primary_utility).to eq "Skateboarding" }
  it { expect(subject.new.sole_material).to eq nil }

  context "attribute definition" do
    subject { ::Ecommerce::ShippingAttributes.new }

    context "model_accessors (delegators)" do
      it {
        ::Ecommerce::ShippingAttributes.fields[:specifics].properties.each do |_property|
          expect(subject.__send__(_property)).to eq subject.specifics.__send__(_property)
        end
{'fraction_non_alphanumeric': 0.1278538812785388, 'fraction_numerical': 0.0, 'mean_word_length': 4.870535714285714, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1782144', 'n_tokens_mistral': 386, 'n_tokens_neox': 375, 'n_words': 73}