tarot 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,4 @@
1
- Config = Tarot::Config.new(File.join(Rails.root, "config", "tarot.yml"), Rails.env)
1
+ Settings = Tarot::Config.new(File.join(Rails.root, "config", "tarot.yml"), Rails.env)
2
2
  def config *args
3
- Config.get *args
3
+ Settings.get *args
4
4
  end
@@ -1,3 +1,3 @@
1
1
  module Tarot
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
@@ -33,6 +33,10 @@ describe Tarot do
33
33
  @tarot.fizz.should == "buzz"
34
34
  @tarot.fizz(nil, "production").should == "bang"
35
35
  end
36
+
37
+ it "should fail when method_missing follows a multi-level chain that doesn't exist" do
38
+ lambda { @tarot.blarg.blaze }.should raise_error(NameError)
39
+ end
36
40
  end
37
41
 
38
42
  context "Given multiple config files" do
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tarot
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 29
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 2
10
- version: 0.1.2
9
+ - 3
10
+ version: 0.1.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Chris Heald