decidim-proposals/spec/lib/decidim/proposals/feature_spec.rb in decidim-0.0.1 vs decidim-proposals/spec/lib/decidim/proposals/feature_spec.rb in decidim-0.0.2
- old
+ new
@@ -20,10 +20,10 @@
end
it "raises an error" do
expect do
Decidim::Admin::DestroyFeature.call(feature)
- end.to raise_error
+ end.to broadcast(:invalid)
expect(feature).to_not be_destroyed
end
end
end