forked from bofh/fetsite
AutoCommit Son Aug 30 16:03:01 CEST 2015
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user