<commit_before>require 'spec_helper'

describe RadioButtonField do
  pending "add some examples to (or delete) #{__FILE__}"
end<commit_msg>Added tests for radio_button_field<commit_after>require 'spec_helper'

describe RadioButtonField do
  before(:each) do
    @rad = RadioButtonField.new(:question_title => "Waiting", :question_description => "Between worlds")
  end

  it "store has a title" do
    expect(@rad.question_title).to eq("Waiting")
  end
  it "store has a title" do
    expect(@rad.question_description).to eq("Between worlds")
  end

  it "parses it's options" do
    @rad.parse_options("A:1\r\nB:2\r\nC:3")
    expect(@rad.field_options).to eq([["A", "1"], ["B", "2"], ["C", "3"]])
  end

  it "has a nice name" do
    expect(RadioButtonField.nice_name).to eq("Radio Buttons")
  end
end
{'fraction_non_alphanumeric': 0.1444582814445828, 'fraction_numerical': 0.007471980074719801, 'mean_word_length': 4.661971830985915, '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': '3384587', 'n_tokens_mistral': 280, 'n_tokens_neox': 271, 'n_words': 74}