spec/cfoundry/v2/client_spec.rb in cfoundry-0.5.0 vs spec/cfoundry/v2/client_spec.rb in cfoundry-0.5.1.rc1

- old
+ new

@@ -24,9 +24,14 @@ describe "#current_user" do subject { client.current_user } before { client.token = token } + context "when there is no token" do + let(:token) { nil } + it { should eq nil } + end + context "when there is no access_token_data" do let(:token) { CFoundry::AuthToken.new("bearer some-access-token", "some-refresh-token") } it { should eq nil } end