File: attribute_spec.rb

package info (click to toggle)
ruby-factory-bot 6.5.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,372 kB
  • sloc: ruby: 7,827; makefile: 6
file content (15 lines) | stat: -rw-r--r-- 370 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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