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

Version Path
template-ruby-0.5.6 spec/code/rescue_spec.rb
language-ruby-0.5.6 spec/code/rescue_spec.rb
code-ruby-0.5.6 spec/code/rescue_spec.rb
template-ruby-0.5.5 spec/code/rescue_spec.rb
language-ruby-0.5.5 spec/code/rescue_spec.rb
code-ruby-0.5.5 spec/code/rescue_spec.rb
template-ruby-0.5.4 spec/code/rescue_spec.rb
language-ruby-0.5.4 spec/code/rescue_spec.rb
code-ruby-0.5.4 spec/code/rescue_spec.rb
template-ruby-0.5.3 spec/code/rescue_spec.rb
language-ruby-0.5.3 spec/code/rescue_spec.rb
code-ruby-0.5.3 spec/code/rescue_spec.rb
template-ruby-0.5.2 spec/code/rescue_spec.rb
language-ruby-0.5.2 spec/code/rescue_spec.rb
code-ruby-0.5.2 spec/code/rescue_spec.rb
language-ruby-0.5.1 spec/code/rescue_spec.rb
template-ruby-0.5.1 spec/code/rescue_spec.rb
code-ruby-0.5.1 spec/code/rescue_spec.rb
template-ruby-0.5.0 spec/code/rescue_spec.rb
language-ruby-0.5.0 spec/code/rescue_spec.rb