Sha256: 2583e938869e7b1e20ca42debdc326d9d34f7878eecddfb08cd0335c91891235
Contents?: true
Size: 440 Bytes
Versions: 3
Compression:
Stored size: 440 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Yardstick::Config, '#initialize' do it { should be_instance_of(described_class) } context 'when block provided' do subject do described_class.new { |config| config.path = new_path } end let(:new_path) { 'custom' } it { should be_instance_of(described_class) } it 'executes block as config' do expect(subject.path).to eql(new_path) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
yardstick-0.9.9 | spec/unit/yardstick/config/initialize_spec.rb |
yardstick-0.9.8 | spec/unit/yardstick/config/initialize_spec.rb |
yardstick-0.9.7 | spec/unit/yardstick/config/initialize_spec.rb |