Sha256: d85b600e01cd678c20e8f68de6fe0d47b22deb70db3a24777ef83bbce9f1d9ca

Contents?: true

Size: 473 Bytes

Versions: 1

Compression:

Stored size: 473 Bytes

Contents

# frozen_string_literal: true

require 'spec_helper'
require 'open3'

describe Space2underscore::Underscore do
  describe '#convert' do
    subject { described_class.new(argument).convert }

    context 'when number of argument is one' do
      let(:argument) { ['foo bar'] }

      it { is_expected.to include('_') }
    end

    context 'when number of argument is many' do
      let(:argument) { %w[foo bar] }

      it { is_expected.to include('_') }
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
space2underscore-0.5.3 spec/space2underscore/underscore_spec.rb