kookaburra 0.14.3 → 0.14.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.14.3
1
+ 0.14.4
data/kookaburra.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "kookaburra"
8
- s.version = "0.14.3"
8
+ s.version = "0.14.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Renewable Funding, LLC"]
@@ -57,6 +57,9 @@ module Kookaburra
57
57
 
58
58
  def default(key)
59
59
  (@defaults ||= Defaults.deep_dup).fetch(key)
60
+ rescue IndexError => e
61
+ raise ArgumentError, "No default named #{key} has been set up in " \
62
+ + "Kookaburra.test_data_setup."
60
63
  end
61
64
  end
62
65
  end
@@ -18,9 +18,9 @@ describe Kookaburra::TestData do
18
18
  assert_equal 'baz', td2.default(:foo)['bar']
19
19
  end
20
20
 
21
- it 'raises an IndexError if the requested default has not been defined' do
21
+ it 'raises an ArgumentError if the requested default has not been defined' do
22
22
  td = Kookaburra::TestData.new
23
- assert_raises IndexError do
23
+ assert_raises ArgumentError do
24
24
  td.default(:foobar)
25
25
  end
26
26
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kookaburra
3
3
  version: !ruby/object:Gem::Version
4
- hash: 33
4
+ hash: 47
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 14
9
- - 3
10
- version: 0.14.3
9
+ - 4
10
+ version: 0.14.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Renewable Funding, LLC