Sha256: 3bd717e8a6cc98a02f7e98ef13fec54dd00daf46f47cee342b0027204a606035

Contents?: true

Size: 478 Bytes

Versions: 9

Compression:

Stored size: 478 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe GithubCLI::Util, '#convert_value' do

  it { expect(subject.convert_value(false)).to eq "false" }

  it { expect(subject.convert_value(true)).to eq "true" }

  it { expect(subject.convert_value(:bar)).to eq "bar" }

  it { expect(subject.convert_value(123)).to eq "123" }

  it { expect(subject.convert_value({:a => false})).to eql ["false"] }

  it { expect(subject.convert_value([2.5])).to eql ["2.5"] }

end # convert_value

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
github_cli-0.6.2 spec/github_cli/util/convert_value_spec.rb
github_cli-0.6.1 spec/github_cli/util/convert_value_spec.rb
github_cli-0.6.0 spec/github_cli/util/convert_value_spec.rb
github_cli-0.5.9 spec/github_cli/util/convert_value_spec.rb
github_cli-0.5.8 spec/github_cli/util/convert_value_spec.rb
github_cli-0.5.7 spec/github_cli/util/convert_value_spec.rb
github_cli-0.5.6 spec/github_cli/util/convert_value_spec.rb
github_cli-0.5.5 spec/github_cli/util/convert_value_spec.rb
github_cli-0.5.4 spec/github_cli/util/convert_value_spec.rb