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