Changing to a smaller pic in the tests
This commit is contained in:
parent
ac694eda8c
commit
39c96bfd04
5 changed files with 4 additions and 4 deletions
|
|
@ -49,7 +49,7 @@ Factory.define :post do |p|
|
|||
end
|
||||
|
||||
Factory.define :photo do |p|
|
||||
p.image File.open( File.dirname(__FILE__) + '/fixtures/bp.jpeg')
|
||||
p.image File.open( File.dirname(__FILE__) + '/fixtures/button.png')
|
||||
|
||||
end
|
||||
|
||||
|
|
|
|||
BIN
spec/fixtures/bp.jpeg
vendored
BIN
spec/fixtures/bp.jpeg
vendored
Binary file not shown.
|
Before Width: | Height: | Size: 261 KiB |
BIN
spec/fixtures/button.png
vendored
Normal file
BIN
spec/fixtures/button.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 288 B |
|
|
@ -2,7 +2,7 @@ require File.dirname(__FILE__) + '/../spec_helper'
|
|||
|
||||
describe Album do
|
||||
before do
|
||||
@fixture_name = File.dirname(__FILE__) + '/../fixtures/bp.jpeg'
|
||||
@fixture_name = File.dirname(__FILE__) + '/../fixtures/button.png'
|
||||
@user = Factory.create(:user)
|
||||
@user.person.save
|
||||
@album = Album.new(:name => "test collection", :person => @user.person)
|
||||
|
|
|
|||
|
|
@ -5,8 +5,8 @@ describe Photo do
|
|||
@user = Factory.create(:user)
|
||||
@user.person.save
|
||||
|
||||
@fixture_filename = 'bp.jpeg'
|
||||
@fixture_name = File.dirname(__FILE__) + '/../fixtures/bp.jpeg'
|
||||
@fixture_filename = 'button.png'
|
||||
@fixture_name = File.dirname(__FILE__) + '/../fixtures/button.png'
|
||||
@fail_fixture_name = File.dirname(__FILE__) + '/../fixtures/msg.xml'
|
||||
@album = Album.create(:name => "foo", :person => @user.person)
|
||||
@photo = Photo.new(:person => @user.person, :album => @album)
|
||||
|
|
|
|||
Loading…
Reference in a new issue