Sha256: 3611b1cf4075016f3eb33846ac6833ad7de0bd065923639c1e77f8991e40a020
Contents?: true
Size: 791 Bytes
Versions: 1
Compression:
Stored size: 791 Bytes
Contents
require './lib/marver/entities/summaries/serie_summary' require './lib/marver/credentials' describe Marver::SerieSummary do let(:credentials) { Marver::Credentials.new('pub_key', 'priv_key') } let(:series_summary) { Marver::SerieSummary.new({ "resourceURI" => "http://example.net", "name" => "Hulk" }, credentials) } it '#resource_uri' do Time.stub_chain(:now, :to_i, :to_s).and_return "1" expect(series_summary.resource_uri).to eq "http://example.net?ts=1&apikey=priv_key&hash=668dea517c974c12d8d0193cf2d8f7f7" end it '#type should always be nil' do expect(series_summary.type).to eq nil end it '#name' do expect(series_summary.name).to eq "Hulk" 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/serie_summary_spec.rb |