Created
February 10, 2013 11:55
-
-
Save lucatironi/4749349 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
require 'spec_helper' | |
describe Form do | |
context "ActiveRecord" do | |
it { should belong_to(:user) } | |
it { should have_many(:entries) } | |
it { should validate_presence_of(:mail_to_address) } | |
it { should validate_presence_of(:redirect_to_url) } | |
end | |
context "Callbacks" do | |
describe ".generate_token" do | |
specify { FactoryGirl.create(:form).token.size.should be(6) } | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment