AutoCommit Son Aug 30 16:03:01 CEST 2015

This commit is contained in:
Andreas Stephanides
2015-08-30 16:03:01 +02:00
parent 4a671f5cff
commit 8bfd96d0af
3 changed files with 38 additions and 5 deletions

View File

@@ -40,16 +40,23 @@ describe Beispiel do
end
it "should respond to flag setter #{flg}" do
expect(@b.respond_to?("flag_#{flg.to_s}=".to_sym)).to be true
puts "flag_#{flg.to_s}"
expect(@b.respond_to?("flag_#{flg.to_s}".to_sym)).to be true
end
end
it "should be in beispiele " do
it "should be in not_flag beispiele" do
@b.save!
bsp= Beispiel.not_flag_delete
expect(bsp).to include @b
end
it "should not be in not_flag" do
@b.save!
bsp= Beispiel.not_flag_delete
expect{@b.flag_delete=true; @b.save!}.to change{ Beispiel.not_flag_delete.count }.by(-1)
expect{@b.flag_delete=nil; @b.save!}.to change{ Beispiel.not_flag_delete.count }.by(1)
end
pending "should be flagable"
end