Sha256: 167ad6305fb32d63cd7e1cd755135af108e7650bb8d7f4562a114a6d295ccbf8

Contents?: true

Size: 270 Bytes

Versions: 3

Compression:

Stored size: 270 Bytes

Contents

require "spec_helper"

RSpec.describe "function" do
  it "converts nil" do
    expect(Code::Ruby.from_code(Code.evaluate("a", ruby: { a: nil }))).to eq(nil)
  end

  it "works with downcase" do
    expect(Code.evaluate("downcase", "{ downcase: 1 }")).to eq(1)
  end
end

Version data entries

3 entries across 3 versions & 3 rubygems

Version Path
template-ruby-0.5.5 spec/code/code_spec.rb
language-ruby-0.5.5 spec/code/code_spec.rb
code-ruby-0.5.5 spec/code/code_spec.rb