spec/language_spec.rb in rconf-0.5.3 vs spec/language_spec.rb in rconf-0.5.5

- old
+ new

@@ -24,36 +24,36 @@ lang.validation_errors.size.should == 1 lang.validation_errors.first.should == "Unknown configurator 'toto'" end it 'should parse correctly' do - lang = RightConf::Language.parse('ruby { ruby_version "1"; rubygems_version "2" }') + lang = RightConf::Language.parse('ruby { version "1"; rubygems "2" }') lang.validation_errors.size.should == 0 lang.configurators.size.should == 1 lang.configurators.first.class.should == RightConf::RubyConfigurator lang.configurators.first.instance_variable_get(:@settings_values).should == - { :ruby_version => '1', :rubygems_version => '2' } + { :version => '1', :rubygems => '2' } end it 'should parse multiple configurations' do lang = RightConf::Language.parse(<<-EOS ruby do - ruby_version "1" - rubygems_version "2" + version "1" + rubygems "2" end bundler do - bundler_version "3" + version "3" end EOS ) lang.validation_errors.size.should == 0 lang.configurators.size.should == 2 lang.configurators[0].class.should == RightConf::RubyConfigurator lang.configurators[0].instance_variable_get(:@settings_values).should == - { :ruby_version => '1', :rubygems_version => '2' } + { :version => '1', :rubygems => '2' } lang.configurators[1].class.should == RightConf::BundlerConfigurator lang.configurators[1].instance_variable_get(:@settings_values).should == - { :bundler_version => '3' } + { :version => '3' } end end