Skip to content

Commit

Permalink
Adds unit test checking the key stored.
Browse files Browse the repository at this point in the history
Signed-off-by: Kouhei Maeda <mkouhei@palmtb.net>
  • Loading branch information
mkouhei committed Sep 13, 2015
1 parent 35db8b7 commit af46afc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions spec/mtodos_spec.rb
Expand Up @@ -30,4 +30,10 @@
cli = Mtodos::Client.new(UDD)
expect(File.exist?('mtodos.cache')).to eq(true)
end

it 'store the key in cache after retrieve' do
cli = Mtodos::Client.new(UDD)
cli.retrieve
expect(cli.is_sent?('rc_std_ae0b0e7487e87af44c1b78efbbec037c')).to eq(true)
end
end

0 comments on commit af46afc

Please sign in to comment.