spec/iarea/area_spec.rb in iarea-0.4.1 vs spec/iarea/area_spec.rb in iarea-0.4.2

- old
+ new

@@ -47,9 +47,14 @@ it "should be nil" do should be_nil end end + context "finding by invalid id" do + subject { Iarea::Area.find("99999") } + it { should be_nil } + end + context "finding by id" do subject { Iarea::Area.find("06304") } its(:name) { should == "新宿1〜2丁目" } end end