1
0
Fork 0
mirror of https://github.com/thoughtbot/factory_bot.git synced 2022-11-09 11:43:51 -05:00
thoughtbot--factory_bot/spec/factory_girl/callback_spec.rb
2011-09-16 17:48:06 -04:00

16 lines
402 B
Ruby

require 'spec_helper'
describe FactoryGirl::Callback do
let(:name) { :after_create }
let(:block) { proc { "block" } }
let(:proxy) { stub("proxy") }
subject { FactoryGirl::Callback.new(name, block) }
its(:name) { should == name }
end
describe FactoryGirl::Callback, "with a string name" do
subject { FactoryGirl::Callback.new("name", nil) }
its(:name) { should == :name }
end