Sha256: b1d9db769ac2096531fb3a311c4346753dd5e7f04bb90c48e2516d58991737ba
Contents?: true
Size: 551 Bytes
Versions: 9
Compression:
Stored size: 551 Bytes
Contents
# frozen_string_literal: true require "spec_helper" describe Decidim::Admin::UpdateScope do let(:organization) { create :organization } let(:scope) { create :scope, organization: organization } let(:name) { "My scope" } let(:form) do double( invalid?: invalid, name: name ) end let(:invalid) { false } subject { described_class.new(scope, form) } context "when the form is not valid" do let(:invalid) { true } it "is not valid" do expect { subject.call }.to broadcast(:invalid) end end end
Version data entries
9 entries across 9 versions & 1 rubygems