AutoCommit Son Aug 30 14:03:01 CEST 2015

This commit is contained in:
Andreas Stephanides
2015-08-30 14:03:01 +02:00
parent 723d7be980
commit 5bf63421a6
9 changed files with 64 additions and 6 deletions

View File

@@ -1,5 +1,20 @@
require 'spec_helper'
describe Beispiel do
pending "add some examples to (or delete) #{__FILE__}"
it "should be created" do
b=FactoryGirl.build(:beispiel)
l=FactoryGirl.create(:lva)
b.lva=l
expect{b.save!; Sunspot.commit}.to change{Beispiel.count}.by(1)
end
it "should not be valid without lva" do
b=FactoryGirl.build(:beispiel)
expect(b.valid?).to be false
end
it "shout respond to comments" do
b=FactoryGirl.create(:beispiel)
expect(b.responds_to?(:comments)).to be true
end
pending "should be flagable"
end