test/fastly-rails/configuration_test.rb in fastly-rails-0.1.7 vs test/fastly-rails/configuration_test.rb in fastly-rails-0.2.0

- old
+ new

@@ -40,30 +40,29 @@ it 'should be an instance method' do assert_respond_to configuration, :authenticatable? end - it 'should return false if api_key, user, and password are nil' do + it 'should return false if api_key is nil' do assert_equal false, configuration.authenticatable? end it 'should return false if only user is not nil' do configuration.user = 'user' assert_equal false, configuration.authenticatable? end it 'should return true if only api_key is not nil' do - configuration.api_key = 'key' - + configuration.api_key = 'test' assert_equal true, configuration.authenticatable? end - it 'should return true if if user and password are not nil' do + it 'should return false if only user and password are not nil' do configuration.user = 'user' configuration.password = 'password' - assert_equal true, configuration.authenticatable? + assert_equal false, configuration.authenticatable? end end it 'should have a default value for max_age since none was provided' do assert_equal FastlyRails::Configuration.max_age_default, configuration.max_age