Sha256: 23bb0fcea2e576c2da0536dac0331c5a139fe2b701aa7442e0bd0b1161e5e117

Contents?: true

Size: 336 Bytes

Versions: 13

Compression:

Stored size: 336 Bytes

Contents

require 'spec_helper'

describe YAMG do
  it 'should instantiate' do
    stub_const('YAML', y = class_double('YAML'))
    expect(y).to receive(:load_file).and_return({})

    expect { YAMG::CLI.new([]) }.to_not raise_error
  end

  describe 'stubbed' do
    let :conf do
      stub_const('YAML', class_double('YAML'))
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
yamg-2.1.1 spec/yamg/yamg_spec.rb
yamg-2.0.0 spec/yamg/yamg_spec.rb
yamg-1.1.4 spec/yamg/yamg_spec.rb
yamg-1.1.3 spec/yamg/yamg_spec.rb
yamg-1.1.1 spec/yamg/yamg_spec.rb
yamg-1.1.0 spec/yamg/yamg_spec.rb
yamg-1.0.9 spec/yamg/yamg_spec.rb
yamg-1.0.8 spec/yamg/yamg_spec.rb
yamg-1.0.7 spec/yamg/yamg_spec.rb
yamg-0.5.5 spec/yamg/yamg_spec.rb
yamg-0.5.3 spec/yamg/yamg_spec.rb
yamg-0.5.1 spec/yamg/yamg_spec.rb
yamg-0.5.0 spec/yamg/yamg_spec.rb