From 13056b33c76ccd1b64ad9ead9adba9a291315347 Mon Sep 17 00:00:00 2001 From: dn Date: Wed, 21 Mar 2012 16:36:40 +0100 Subject: [PATCH] Fixes execution of configuration default tests * defaults were never tested because of invalid include? * corrected defaults to reflect current configuration object --- spec/copycopter_client/configuration_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/copycopter_client/configuration_spec.rb b/spec/copycopter_client/configuration_spec.rb index 6479428..2f9b2c1 100644 --- a/spec/copycopter_client/configuration_spec.rb +++ b/spec/copycopter_client/configuration_spec.rb @@ -5,7 +5,7 @@ match do |config| config.should respond_to(option) - if instance_variables.include?('@default') + if instance_variables.include?(:'@default') config.send(option).should == @default end @@ -32,8 +32,8 @@ it { should have_config_option(:environment_name).overridable.default(nil) } it { should have_config_option(:client_version).overridable.default(CopycopterClient::VERSION) } it { should have_config_option(:client_name).overridable.default('Copycopter Client') } - it { should have_config_option(:client_url).overridable.default('http://copycopter.com') } - it { should have_config_option(:secure).overridable.default(true) } + it { should have_config_option(:client_url).overridable.default('https://rubygems.org/gems/copycopter_client') } + it { should have_config_option(:secure).overridable.default(false) } it { should have_config_option(:host).overridable.default('copycopter.com') } it { should have_config_option(:http_open_timeout).overridable.default(2) } it { should have_config_option(:http_read_timeout).overridable.default(5) }