indent using spaces
This commit is contained in:
parent
b1fac33420
commit
ae1f292719
4 changed files with 41 additions and 43 deletions
|
|
@ -1,13 +1,13 @@
|
|||
FactoryGirl.define do
|
||||
factory :organization do
|
||||
name { Faker::Company.name }
|
||||
description { Faker::Lorem.paragraph }
|
||||
name { Faker::Company.name }
|
||||
description { Faker::Lorem.paragraph }
|
||||
|
||||
# after(:create) do |organization|
|
||||
# File.open("spec/support/logos/#{1 + rand(13)}.png") do |file|
|
||||
# organization.picture = file
|
||||
# end
|
||||
# organization.save!
|
||||
# end
|
||||
# after(:create) do |organization|
|
||||
# File.open("spec/support/logos/#{1 + rand(13)}.png") do |file|
|
||||
# organization.picture = file
|
||||
# end
|
||||
# organization.save!
|
||||
# end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ describe Organization do
|
|||
|
||||
describe 'validation' do
|
||||
it 'has a valid factory' do
|
||||
expect( build(:organization) ).to be_valid
|
||||
expect(build(:organization)).to be_valid
|
||||
end
|
||||
|
||||
it 'is not valid without a name' do
|
||||
|
|
@ -17,4 +17,3 @@ describe Organization do
|
|||
it { should have_many(:conferences).dependent(:destroy) }
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue