AutoCommit Mon Sep 14 00:03:01 CEST 2015
This commit is contained in:
@@ -2,4 +2,9 @@ require 'spec_helper'
|
||||
|
||||
describe Attachment do
|
||||
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
|
||||
|
||||
@@ -18,7 +18,6 @@ describe Beispiel, :type=>:model do
|
||||
let(:beispiel){FactoryGirl.build(:beispiel, lva: lva)}
|
||||
|
||||
it "should be created" do
|
||||
|
||||
expect{beispiel.save!; Sunspot.commit}.to change{Beispiel.count}.by(1)
|
||||
end
|
||||
it "is not valid without lva" do
|
||||
|
||||
Reference in New Issue
Block a user