spec/config_spec.rb in chatterbot-0.2.1 vs spec/config_spec.rb in chatterbot-0.2.2
- old
+ new
@@ -24,9 +24,19 @@
@bot.config[:foo].should == :baz
@bot.config[:a].should == :b
@bot.config[:custom].should == :value
end
+ it "update_config? is true by default" do
+ @bot.update_config?.should == true
+ end
+
+ it "update_config? is false if this is a dry run" do
+ @bot.config[:dry_run] = true
+ @bot.update_config?.should == false
+ end
+
+
it "returns a log dest" do
@bot.should_receive(:load_config).and_return({:log_dest => :bar})
@bot.config = nil
@bot.log_dest.should == :bar