Sha256: 2efb98baaaf8de70802dd9c032764e4d6ccb914b5b278c801592fdc843d1efbb
Contents?: true
Size: 297 Bytes
Versions: 21
Compression:
Stored size: 297 Bytes
Contents
require "spec_helper" RSpec.describe "rescue" do let(:timeout) { 0 } subject { Code.evaluate(input, timeout: timeout).to_s } [["a rescue 'oops'", "oops"]].each do |input, output| context input do let(:input) { input } it { expect(subject).to eq(output) } end end end
Version data entries
21 entries across 21 versions & 3 rubygems