spec/thread_spec.rb in mona-0.3.0 vs spec/thread_spec.rb in mona-0.4.0
- old
+ new
@@ -38,10 +38,11 @@
end
end
describe :from_url do
context "with valid url: http://news2.2ch.net/test/read.cgi/newsplus/1000000000/" do
- subject { Mona::Thread.from_url "http://news2.2ch.net/test/read.cgi/newsplus/1000000000/" }
+ before { @thread = Mona::Thread.from_url "http://news2.2ch.net/test/read.cgi/newsplus/1000000000/" }
+ subject { @thread }
its("board.host") { should == "news2.2ch.net" }
its("board.board") { should == "newsplus" }
its(:id) { should == 1000000000 }
end
context "with invalid url" do