require "#{Rails.root}/lib/ingestor/drupal/n_main_entry"

FactoryGirl.define do
  factory :n_main_entry, class: Ingestor::Drupal::NMainEntry do
    data {{"nid":"234797","type":"main_entry","language":"","uid":"1","status":"0",
          "created":"1308333880","changed":"1374675219","comment":"0","promote":"0",
          "moderate":"0","sticky":"0","tnid":"0","translate":"0","vid":"1002271",
          "revision_uid":"1","title":"test - na-v","body":"","teaser":"","log":"",
          "revision_timestamp":"1374675219","format":"0","name":"admin","picture":"",
          "data":"a:2:{s:13:\"form_build_id\";s:37:\"form-b6fd2a8a0c47e97e251f022b5bc7648d\";s:18:\"admin_compact_mode\";b:1;}",
          "path":"main-entry\/test-na-v","field_antonym":[{"nid":"270214"}],
          "field_base_word_node":[{"nid":"257664"}],"field_common_name":[{"value":"common_name_here"}],
          "field_compounding_form":[{"value":"compouding form here"}],
          "field_derivational_note":[{"value":"derivational notes here","format":nil}],
          "field_encyclopedic":[{"value":"encyclopedic here","format":nil}],
          "field_entry_completion_status":[{"value":"B"}],"field_inverse_spelling":[{"value":"inverse_spelling1"}],
          "field_lemma":[{"value":"test"}],"field_literal":[{"value":"literal here","format":nil}],
          "field_main_entry_note":[{"value":"ojibwe usage note here"}],
          "field_notes_general":[{"value":"this is a testing node 123"}],
          "field_osort":[{"value":"test"}],"field_plural_suffix":[{"value":"wag"}],
          "field_pos_ojibwe":[{"nid":"237568"}],"field_species_name":[{"value":"species_name_here"}],
          "field_synonym":[{"nid":"270216"}],"field_usage_english":[{"value":"english usage note here",
          "format":nil}],"field_word_stem":[{"value":"word stem here","format":"1"}],
          "field_gloss_note":[{"value":"gloss note here"}],"field_word_family_label":[{"value":"reciprocal"}],
          "field_plvb":[{"value":"plural verb field"}],"field_base_word_note":[{"value":"base word"}],
          "field_main_entry_audio":[{"nid":"647485"}],"field_derivational_note_oj":[{"value":nil,"format":nil}],
          "field_index_collection_node":[{"nid":nil}],"field_index_contribution_node":[{"nid":nil}],
          "field_index_document":[{"nid":nil}],"field_index_local_image_node":[{"nid":nil}],
          "field_index_local_video_node":[{"nid":nil}],"field_index_monolingual_only":[{"value":"bilingual"}],
          "field_proficiency_listening":[{"value":nil}],"field_proficiency_reading":[{"value":nil}],
          "field_proficiency_speaking":[{"value":nil}],"field_proficiency_writing":[{"value":nil}],
          "field_usage_english_oj":[{"value":nil,"format":nil}],"field_usage_oj":[{"value":nil,"format":nil}],
          "field_regions":[{"value":"BL"},{"value":"C"},{"value":"FL"}],"field_region_note":[{"value":nil}],
          "field_source_node":[{"nid":"123456"}],"field_gloss_node":[{"nid":"487825"}],
          "field_gloss_sense_group_node":[{"nid":"644618"}],
          "field_word_family_node":[{"nid":"257664"}],
          "field_gloss_node_oj":[{"nid":nil}],"field_gloss_sense_group_node_oj":[{"nid":nil}],
          "field_inflectional_form":[{"nid":"682328"}],
          "field_inflectional_form_addition":[{"nid":nil}],
          "field_wordpart_initials":[{"nid":"1967"}],"field_wordpart_medials":[{"nid":"2133"}],
          "field_wordpart_finals":[{"nid":"1510"}],"field_sentence_example":[{"nid":"390668"}],
          "field_usage":[{"value":"Usage instructions here.","format":nil}],
          "field_preverb_node":[{"nid":"260643"}],"field_compound_node":[{"nid":"268956"}],
          "field_provenance":[{"value":nil}],"field_main_document_node":[{"nid":"12345"}],
          "field_collection_node":[],"field_local_image_node":[{"nid":"237566"}],
          "field_local_video_node":[{"nid":"654175"}],"field_contribution_node":[{"nid":nil}],
          "field_variant_node":[{"nid":"278311"}],"field_cross_reference_node":[{"nid":"269949"}],
          "field_gender_pair":[{"nid":"234797"}],"field_paradigm_node":[{"nid":"237692"}],
          "field_reduplicated_node":[{"nid":"594630"}],"field_reduplicated_main":[{"nid":"262470"}],
          "field_related_word_group":[{"nid":"1234"}],"field_monolingual_pos_ojibwe":[{"value":"dinowa bemaadizid"}],
          "taxonomy":{"14":{"tid":"14","vid":"3","name":"animal","description":"","weight":"0","v_weight_unused":"0"},"12":{"tid":"12","vid":"3","name":"earth","description":"","weight":"0","v_weight_unused":"0"},"13":{"tid":"13","vid":"3","name":"elements","description":"","weight":"0","v_weight_unused":"0"},"3373":{"tid":"3373","vid":"1092","name":"test - na-v","description":"","weight":"0","v_weight_unused":"0"}}}}

    initialize_with { new(data) }
  end
end
