Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions spec/nandi/formatting_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,12 @@
shared_examples "outputs valid ruby" do |input|
let(:value) { input }

# rubocop:disable Security/Eval
# rubocop:disable-next Security/Eval
it "evaluates to the same value" do
expect(eval(result)).to eq(input)
rescue SyntaxError
raise StandardError, "not valid ruby: #{result}"
end
# rubocop:enable Security/Eval
end

context "with nil" do
Expand Down
Loading