Sha256: ad2be50aca00ead4ff20dea2a7cdedf0cee4b305cb1b39ae70cc9ebeb27bc67a
Contents?: true
Size: 917 Bytes
Versions: 4
Compression:
Stored size: 917 Bytes
Contents
# -*- coding: utf-8 -*- require File.expand_path(File.dirname(__FILE__) + '/spec_helper') def test_subject File.read(File.expand_path(File.dirname(__FILE__) + '/test_data/subject.txt')) end describe Mona::Board do before do Mona::Board.any_instance.stub(:connect) { test_subject } end subject { Mona::Board.new('localhost', 'board_001') } its(:dat_url) { should eq("http://localhost/board_001/subject.txt") } describe :threads do subject { Mona::Board.new('localhost', 'board_001').threads } its(:count) { should eq 2 } its('first.title') { should eq'【東京】岩手の食材をテーマにした居酒屋が復興目指して急遽オープン' } its('first.id') { should eq 1317477718 } its('first.res_num') { should eq 49 } its('first.board') { should eq subject } end end describe Mona::Board, 'real' do subject { Mona::Board.new('hibari.2ch.net', 'prog') } end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
mona-0.3.0 | spec/board_spec.rb |
mona-0.2.1 | spec/board_spec.rb |
mona-0.2.0 | spec/board_spec.rb |
mona-0.1.0 | spec/board_spec.rb |