From 578b1b289f756ed9eae55d97465b1d65ecfb9fdf Mon Sep 17 00:00:00 2001 From: Alexander Machehin Date: Tue, 2 Sep 2014 16:54:00 +0600 Subject: [PATCH] fix build list spec --- spec/models/build_list_spec.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spec/models/build_list_spec.rb b/spec/models/build_list_spec.rb index f45535063..b28cdc5df 100644 --- a/spec/models/build_list_spec.rb +++ b/spec/models/build_list_spec.rb @@ -86,7 +86,8 @@ describe BuildList do end it "doesn't get notification by email when mass build" do - build_list.update_attributes({mass_build_id: 1, status: BuildList::BUILD_PUBLISH}, without_protection: true) + mb = FactoryGirl.build(:mass_build) + build_list.update_attributes(mass_build_id: mb.id, status: BuildList::BUILD_PUBLISH) build_list.published should have(:no).items end