before do
@admin = FactoryGirl.create :admin
@user = FactoryGirl.create( :user_yas)
+ @author = FactoryGirl.create :author, :user_id => @user.id
@sp = FactoryGirl.create :system_picture
@lg = FactoryGirl.create :license_group, :name => 'peta'
@license = FactoryGirl.create :license, :license_group_id => @lg.id, :system_picture_id => @sp.id
json = JSON.parse response.body
json["name"].should match(/peta/)
json["classname"].should_not be_nil
- json["caption"].should_not be_nil\r
- json["url"].should_not be_nil\r
+ json["caption"].should_not be_nil
+ json["url"].should_not be_nil
end
end
end