Sha256: 6cafe8a8201059f6cc9a073bba9ee29f5b1b1a6fb031563465f823290d69ae44
Contents?: true
Size: 789 Bytes
Versions: 2
Compression:
Stored size: 789 Bytes
Contents
# -*- coding: utf-8 -*- require "spec_helper" require "pp" describe Ugigi, "が #search を呼ぶ時は" do before do @free_search_result = Ugigi.search(:free => "霊夢") end it "Array を返すこと" do @free_search_result.class.should == Array end it "配列の中身が全て Ugigi::Index であること" do @free_search_result.each do |i| i.class.should == Ugigi::Index end end it "配列の最初のIndexのtitleがStringであること" do @free_search_result.first.title.class.should == String end end describe Ugigi, "が #total_count を呼ぶ時は" do before do @total_count_result = Ugigi.total_count(:free => "霊夢") end it "Fixnum を返すこと" do @total_count_result.class.should == Fixnum end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ugigi-0.4.2 | spec/ugigi_spec.rb |
ugigi-0.4.1 | spec/ugigi_spec.rb |