Sha256: 77e9bb6718df2d0780e16492fd853d5187c7655da92632fd8098b382b2186fbd
Contents?: true
Size: 619 Bytes
Versions: 7
Compression:
Stored size: 619 Bytes
Contents
require 'spec_helper' describe CandyCheck::PlayStore::DiscoveryRepository do subject { CandyCheck::PlayStore::DiscoveryRepository.new(discovery_path) } let(:data) do { 'demo' => 1 } end describe 'empty file path' do let(:discovery_path) { nil } it 'returns nil for nil path' do subject.load.must_be_nil end it 'does not save' do subject.save(data) end end describe 'valid file path' do include WithTempFile with_temp_file :discovery it 'saves and loads the file content' do subject.save(data) subject.load.must_equal data end end end
Version data entries
7 entries across 7 versions & 1 rubygems