<commit_before>require_relative '../../test_helper.rb'

describe HstoreRadioButtons do
  it 'adds a HstoreRadioData active record class' do
    HstoreRadioButtons::HstoreRadioData.new.must_equal []
  end

  it 'allows a class to respond to hstore_radio_buttons' do
    Person.must_respond_to :hstore_radio_buttons
  end

  it 'builds a has_one association with the hstore_radio_data table' do
    Person.new.must_respond_to :hstore_radio_data
    Person.new.must_respond_to :build_hstore_radio_data
    #Person.new.build_hstore_radio_data.must_equal {}
  end
end<commit_msg>Just a simple check that our data table is in place<commit_after>require_relative '../../test_helper.rb'

describe HstoreRadioButtons do
  it 'adds a HstoreRadioData active record class' do
    HstoreRadioButtons::HstoreRadioData.new.wont_be_nil
  end

  it 'allows a class to respond to hstore_radio_buttons' do
    Person.must_respond_to :hstore_radio_buttons
  end

  it 'builds a has_one association with the hstore_radio_data table' do
    Person.new.must_respond_to :hstore_radio_data
    Person.new.must_respond_to :build_hstore_radio_data
  end
end
{'fraction_non_alphanumeric': 0.06017699115044248, 'fraction_numerical': 0.0, 'mean_word_length': 4.8, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '12506', 'n_tokens_mistral': 371, 'n_tokens_neox': 368, 'n_words': 96}