Skip to content

Commit

Permalink
rspec: add context block
Browse files Browse the repository at this point in the history
  • Loading branch information
myokoym committed Oct 6, 2012
1 parent 76cb6b4 commit 70cbe70
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec/syllable_spec.rb
Expand Up @@ -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.