spec/settings_spec.rb in peony-0.1.6 vs spec/settings_spec.rb in peony-0.1.8
- old
+ new
@@ -9,23 +9,23 @@
@settings.email = 'zhiqiangzhan@gmail.com'
@settings.email.should == 'zhiqiangzhan@gmail.com'
end
it 'setting proc should work' do
- @settings.email = ->{"zhiqiangzhan@gmail.com"}
+ @settings.email = ->{ 'zhiqiangzhan@gmail.com' }
@settings.email.should == 'zhiqiangzhan@gmail.com'
end
it 'lambdas should work' do
@settings.path = lambda { "/var/www/#{@settings.version}" }
@settings.version = '3'
@settings.path?.should be_true
- @settings.path.should == "/var/www/3"
+ @settings.path.should == '/var/www/3'
end
it 'setting block should work' do
- @settings.send(:email=){"zhiqiangzhan@gmail.com"}
+ @settings.send(:email=){ 'zhiqiangzhan@gmail.com' }
@settings.email.should == 'zhiqiangzhan@gmail.com'
end
it 'setting set default value should be work' do
@settings.send(:x=, 1){ 3 }
\ No newline at end of file