spec/board_spec.rb in mona-0.3.0 vs spec/board_spec.rb in mona-0.4.0

- old
+ new

@@ -7,19 +7,19 @@ describe Mona::Board do before do Mona::Board.any_instance.stub(:connect) { test_subject } end - - subject { Mona::Board.new('localhost', 'board_001') } + let(:board) { Mona::Board.new('localhost', 'board_001') } + subject { board } 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 } + its('first.board.board') { should == board.board } end end describe Mona::Board, 'real' do subject { Mona::Board.new('hibari.2ch.net', 'prog') }