AutoCommit Mon Sep 14 00:03:01 CEST 2015
This commit is contained in:
@@ -3,5 +3,7 @@
|
|||||||
FactoryGirl.define do
|
FactoryGirl.define do
|
||||||
factory :attachment do
|
factory :attachment do
|
||||||
name "MyString"
|
name "MyString"
|
||||||
|
datei { Rack::Test::UploadedFile.new(File.join(Rails.root,'public','fetlogo.png'))}
|
||||||
|
flag_titlepic false
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -2,4 +2,9 @@ require 'spec_helper'
|
|||||||
|
|
||||||
describe Attachment do
|
describe Attachment do
|
||||||
pending "add some examples to (or delete) #{__FILE__}"
|
pending "add some examples to (or delete) #{__FILE__}"
|
||||||
|
let(:attachment) {FactoryGirl.build_stubbed(:attachment)}
|
||||||
|
it "responds to image" do
|
||||||
|
expect(attachment.respond_to?(:image?)).to be true
|
||||||
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ describe Beispiel, :type=>:model do
|
|||||||
let(:beispiel){FactoryGirl.build(:beispiel, lva: lva)}
|
let(:beispiel){FactoryGirl.build(:beispiel, lva: lva)}
|
||||||
|
|
||||||
it "should be created" do
|
it "should be created" do
|
||||||
|
|
||||||
expect{beispiel.save!; Sunspot.commit}.to change{Beispiel.count}.by(1)
|
expect{beispiel.save!; Sunspot.commit}.to change{Beispiel.count}.by(1)
|
||||||
end
|
end
|
||||||
it "is not valid without lva" do
|
it "is not valid without lva" do
|
||||||
|
|||||||
Reference in New Issue
Block a user