spec/support/shared_examples/configuration.rb in aruba-0.13.0 vs spec/support/shared_examples/configuration.rb in aruba-0.14.0
- old
+ new
@@ -19,10 +19,10 @@
context 'when value is read' do
it { expect(config.new_opt).to eq 1 }
end
context 'when one tries to write a value' do
- it { expect{ config.new_opt = 1}.to raise_error NoMethodError }
+ it { expect{ config.new_opt = 1}.to raise_error NoMethodError }
end
context 'when block is defined' do
before :each do
config_klass.option_reader :new_opt2, :contract => { Contracts::Num => Contracts::Num } do |c|