fix build list spec

This commit is contained in:
Alexander Machehin 2014-09-02 16:54:00 +06:00
parent 7c75cc7571
commit 578b1b289f
1 changed files with 2 additions and 1 deletions

View File

@ -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