Permalink
Browse files

rspec: add context block

  • Loading branch information...
1 parent 76cb6b4 commit 70cbe70b7d7169c9575182b2059d75b37d1718a4 @myokoym committed Oct 6, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 spec/syllable_spec.rb
View
@@ -3,11 +3,13 @@
describe MeCab::Syllable do
subject { MeCab::Syllable }
+ context "#count" do
it "めかぶ == 3" do
subject.new("めかぶ").count.should == 3
end
it "今日は雨 == 5" do
subject.new("今日は雨").count.should == 5
end
+ end
end

0 comments on commit 70cbe70

Please sign in to comment.