Sha256: 16f7325bae7b39452a031d92d17b58995a3ba358ab2fd8a43716bd5deff9244b

Contents?: true

Size: 410 Bytes

Versions: 2

Compression:

Stored size: 410 Bytes

Contents

# frozen_string_literal: true

require 'spec_helper'

describe 'yard' do
  describe Sinclair::OptionsParser do
    let(:options) { { switch: false, option_1: 10, option_2: 20 } }
    subject { described_class::Dummy.new(options) }

    describe '#the_method' do
      it 'returns the value for option given' do
        expect(subject.the_method).to eq('The value is not 10 but 20')
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sinclair-1.1.3 spec/integration/yard/options_parser_spec.rb
sinclair-1.1.2 spec/integration/yard/options_parser_spec.rb