Created
January 26, 2012 18:08
-
-
Save rafarubert/1684098 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| context "should validate presence of country fields if country not equal BRASIL" do | |
| before do | |
| Country.stub!(:find).with(2).and_return({:id => 2, :name => "ARGENTINA",:created_at => Time.now , :updated_at => Time.now}) | |
| end | |
| it { should validate_presence_of :year_of_arrival } | |
| it { should validate_presence_of :passport } | |
| it { should validate_presence_of :type_visa } | |
| it { should validate_presence_of :validity_visa } | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment