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_bot/attribute_spec.rb

15 lines
370 B
Ruby

describe FactoryBot::Attribute do
it "converts the name attribute to a symbol" do
name = "user"
attribute = FactoryBot::Attribute.new(name, false)
expect(attribute.name).to eq name.to_sym
end
it "is not an association" do
name = "user"
attribute = FactoryBot::Attribute.new(name, false)
expect(attribute).not_to be_association
end
end