mirror of
https://github.com/thoughtbot/factory_bot.git
synced 2022-11-09 11:43:51 -05:00
16 lines
402 B
Ruby
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
|