Topic: testing fabricators with rspec
I have done this in all my models but this one is giving me a error.
require 'spec_helper'
describe Contact do
it "has a valid factory" do
Fabricate.build(:contact).should be_valid
end
endthis one is working just fine
require 'spec_helper'
describe Account do
it "has a valid factory" do
Fabricate.build(:account).should be_valid
end
end