Sha256: 217aab5864e0e8162ef61caa6d8b9060a085becd7f9da97f6f81e0f4b5868146
Contents?: true
Size: 635 Bytes
Versions: 2
Compression:
Stored size: 635 Bytes
Contents
require 'spec_helper' require 'fakefs/safe' include Howami describe Authentication do describe ".new" do it "should be instantiated with any args" do lambda { Authentication.new() }.should_not raise_error lambda { Authentication.new( "moo ") }.should raise_error(ArgumentError) end end describe ".authenticated_client" do # it "should return a working fitgem client ready for action" √ it "should throw an error if proper credentials arent stored" do FakeFS do wipe_credentials! lambda { Authentication.authenticated_client }.should raise_error end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
howami-0.0.2 | spec/authentication_spec.rb |
howami-0.0.1 | spec/authentication_spec.rb |