Sha256: d2dad4c8d9e4470e01b1876c837c283d892a7288ae69f89908810151a21583ee
Contents?: true
Size: 629 Bytes
Versions: 1
Compression:
Stored size: 629 Bytes
Contents
$: << File.dirname(__FILE__) require 'helper' class TestSidekickClient < Test::Unit::TestCase context "sidekick client" do setup do SidekickClient.log = "STDOUT" end should "instantiate" do SidekickClient.new end should "use config override" do expected_config = {:foo => :bar} client = SidekickClient.new(expected_config) assert_equal :bar, client.config[:foo] end should "warn about missing config file" do assert_raise(LoadError) do SidekickClient.config = "/foo/bar/doesnotexist" SidekickClient.new end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sidekick-client-0.2.5 | test/test_sidekick-client.rb |