This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FactoryGirl.define do | |
| factory :passage do | |
| author "test" | |
| content "a ab abc abcd a ab abc abcd xyz zyx yxz yzx xyz bacd bacd" | |
| language "h" | |
| title "testFG" | |
| end | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'spec_helper' | |
| describe PassagesHelper do | |
| describe "#unique_words" do | |
| let(:passage) { FactoryGirl.create(:passage) } | |
| passage.title.should eq("testFG") | |
| # @result = unique_words(:passage.content) | |
| # result.to_set == result | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if __FILE__ == $0 | |
| # TODO Generated stub | |
| end | |
| $KCODE = "U" | |
| filename = 'njs test.U8.TXT' | |
| dictionary = 'cedict_ts.u8' | |
| vocab_list = [] |