Skip to content

Commit

Permalink
Test invalid editor
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinDaugherty committed Nov 4, 2020
1 parent 45915e6 commit 123f9b3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions spec/better_errors_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 123f9b3

Please sign in to comment.