Sha256: ba605fcfba7029e7c7632386e25ddbbcecb3edfd21bbb719e2f4d3c6e83373e9
Contents?: true
Size: 580 Bytes
Versions: 1
Compression:
Stored size: 580 Bytes
Contents
# -*- coding: utf-8 -*- require 'jldrill/model/items/JWord' module JLDrill # A JWord is a Japanese Word in a Japanese to English dictionary. describe JWord do before(:each) do @word = JWord.new # The word needs a reading to be valid @word.should_not be_valid end it "should have a kanji/reading key" do @word.kanji = "雨" @word.should_not be_valid @word.reading = "あめ" @word.should be_valid @word.kanji = "" @word.should be_valid end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jldrill-0.5.1.7 | spec/jldrill/model/items/JWord_spec.rb |