spec/configuration_spec.rb in nsisam-0.6.2 vs spec/configuration_spec.rb in nsisam-0.6.3

- old
+ new

@@ -21,16 +21,23 @@ it "set and return port" do Configuration.port '8888' Configuration.port.should == '8888' end + it "set and return default expire time" do + Configuration.expire 5 + Configuration.expire.should == 5 + end + it "return a hash of attributes" do Configuration.instance_eval do user "why" password "chunky" host "localhost" port "8888" + expire 8 end Configuration.settings.should == {user: "why", password: "chunky", - host: "localhost", port: "8888"} + host: "localhost", port: "8888", + expire: 8} end end