spec/jeckyl_spec.rb in jeckyl-0.3.7 vs spec/jeckyl_spec.rb in jeckyl-0.4.0
- old
+ new
@@ -27,11 +27,11 @@
conf = TestJeckyl.new(conf_file)
conf[:log_dir].should match(/test$/)
conf[:log_level].should == :verbose
conf[:log_rotation].should == 5
conf[:email].should == "robert@osburn-sharp.ath.cx"
- conf.has_key?(:sieve).should be_true
+ conf.has_key?(:sieve).should be true
conf[:config_files].length.should == 1
conf[:option_set][:peter].should == 37
conf[:offset].should == 134
conf[:start_day].should == 6
end
@@ -183,15 +183,15 @@
bconf = File.join(conf_path, 'bclass.rb')
opts = Bclass.new(bconf)
opts.length.should == 4
subopts = Aclass.intersection(opts)
subopts.length.should ==2
- subopts.has_key?(:a_bool).should be_true
- subopts.has_key?(:no_def).should be_true
+ subopts.has_key?(:a_bool).should be true
+ subopts.has_key?(:no_def).should be true
opts.complement(subopts)
opts.length.should == 2
- opts.has_key?(:config_files).should be_true
- opts.has_key?(:another).should be_true
+ opts.has_key?(:config_files).should be true
+ opts.has_key?(:another).should be true
end
end
describe "Merging config files" do
it "should merge another config file" do