diff --git a/spec/better_errors_spec.rb b/spec/better_errors_spec.rb index 0b5b6604..fbec6e7c 100644 --- a/spec/better_errors_spec.rb +++ b/spec/better_errors_spec.rb @@ -33,6 +33,12 @@ expect(subject.editor).to eq(:editor_from_symbol) end end + + context "when set to something else" do + it "raises an ArgumentError" do + expect { subject.editor = Class.new }.to raise_error(ArgumentError) + end + end end context "when no value has been set" do