1 require File.join( File.dirname(__FILE__), "..", "spec_helper" )
9 it "should be valid" do
10 @country.name = "Andorra"
11 @country.should be_valid
14 it "should have a name field" do
16 @country.errors.on(:name).should_not be_nil
19 it "should have a code field" do
20 @country.name = "Lithuania"
22 @country.should be_valid