Sha256: 5f0ab5cbc7df5480120cdf72e654d07d4e73fb25881c2568f5778efbdb73510d
Contents?: true
Size: 1.03 KB
Versions: 1
Compression:
Stored size: 1.03 KB
Contents
# -*- coding: utf-8 -*- require "pp" require "spec_helper" describe Sosowa, "が #get, :log => 0 を呼ぶ時は" do before do @log = Sosowa.get :log => 0 end it "Megalith::Subjectを返すこと" do @log.class.should == Megalith::Subject end it "最初がMegalith::Indexであること" do @log.first.class.should == Megalith::Index end it "最初のタイトルがStringであること" do @log.first.title.class.should == String end it "#next_pageがMegalith::Subjectを返すこと" do @log.next_page.class.should == Megalith::Subject end it "#prev_pageがMegalith::Subjectを返すこと" do @log.prev_page.class.should == Megalith::Subject end it "#latest_logがFixnumを返すこと" do @log.latest_log.class.should == Fixnum end it "最初を#fetchしたらMegalith::Novelを返すこと" do @log.first.fetch.class.should == Megalith::Novel end it "最初を#fetchしたMegalith::Novel#titleがStringなこと" do @log.first.fetch.title.class.should == String end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sosowa-2.0 | spec/sosowa_spec.rb |