Sha256: e4d906810d9fffeba66799767275fa2e2e0004156de9195a0b84959253603532
Contents?: true
Size: 512 Bytes
Versions: 88
Compression:
Stored size: 512 Bytes
Contents
require 'spec_helper' describe FactoryGirl::Attribute do let(:name) { "user" } subject { FactoryGirl::Attribute.new(name, false) } its(:name) { should == name.to_sym } it { should_not be_association } it "raises an error when defining an attribute writer" do error_message = %{factory_girl uses 'test value' syntax rather than 'test = value'} expect { FactoryGirl::Attribute.new('test=', false) }.to raise_error(FactoryGirl::AttributeDefinitionError, error_message) end end
Version data entries
88 entries across 79 versions & 5 rubygems