Skip to content

Commit 123f9b3

Browse files
Test invalid editor
1 parent 45915e6 commit 123f9b3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

spec/better_errors_spec.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@
3333
expect(subject.editor).to eq(:editor_from_symbol)
3434
end
3535
end
36+
37+
context "when set to something else" do
38+
it "raises an ArgumentError" do
39+
expect { subject.editor = Class.new }.to raise_error(ArgumentError)
40+
end
41+
end
3642
end
3743

3844
context "when no value has been set" do

0 commit comments

Comments
 (0)