Sha256: c6b1a1145d5b75449aaf916fc86863974b484345da2cc8db1c4ab03f5a0ca08f

Contents?: true

Size: 534 Bytes

Versions: 1

Compression:

Stored size: 534 Bytes

Contents

# encoding: utf-8
require 'jldrill/model/items/DictionaryEntry'

module JLDrill

	describe DictionaryEntry do
	
		before(:each) do
            @word = DictionaryEntry.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.6.0.1 spec/jldrill/model/items/DictionaryEntry_spec.rb