spec/lib/mode/sdk_spec.rb in mode-sdk-0.0.1 vs spec/lib/mode/sdk_spec.rb in mode-sdk-0.1.0

- old
+ new

@@ -45,6 +45,14 @@ 'username' => 'someone') expect(Mode::Sdk.username).to eq('someone') end end + + describe '.authenticated?' do + it 'returns value from client' do + expect(Mode::Sdk::Client).to receive(:authenticated?).and_return(true) + + expect(Mode::Sdk.authenticated?).to eq(true) + end + end end