Sha256: 29bfd1709af9a00455a2509f0b556269f8e040c6ef7b661e21ae0f81e86a27f7
Contents?: true
Size: 871 Bytes
Versions: 1
Compression:
Stored size: 871 Bytes
Contents
require './lib/marver/entities/summaries/event_summary' require './lib/marver/credentials' describe Marver::EventSummary do let(:credentials) { Marver::Credentials.new('priv_key', 'pub_key') } let(:event_summary) { Marver::EventSummary.new({ "id" => "123", "resourceURI" => "http://example.net", "name" => "Breathing" }, credentials) } it '#id' do expect(event_summary.id).to eq 123 end it '#resource_uri' do Time.stub_chain(:now, :to_i, :to_s).and_return "1" expect(event_summary.resource_uri).to eq "http://example.net?ts=1&apikey=pub_key&hash=3d4ce88a477c7e4a5accbf6cd2c8b819" end it '#type should always be nil' do expect(event_summary.type).to eq nil end it '#name' do expect(event_summary.name).to eq "Breathing" end describe '#full' do it 'fetches the full view of the entity' do pending end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
marver-0.0.2 | spec/marver/entities/summaries/event_summary_spec.rb |