Sha256: fabf0786454ad866dd2b79b5fea85fed35c499756fea2f5e21b099dda379cf6f
Contents?: true
Size: 658 Bytes
Versions: 2
Compression:
Stored size: 658 Bytes
Contents
RSpec.describe Yaks::Resource::Link do subject(:link) { described_class.new(rel: rel, uri: uri, options: options) } let(:rel) { :foo_rel } let(:uri) { 'http://api.example.org/rel/foo' } let(:options) { { title: 'mr. spectacular' } } its(:rel) { should eql :foo_rel } its(:uri) { should eql 'http://api.example.org/rel/foo' } its(:options) { should eql(title: 'mr. spectacular') } its(:title) { should eql('mr. spectacular') } its(:templated?) { should be false } context 'with explicit templated option' do let(:options) { super().merge(templated: true) } its(:templated?) { should be true } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
yaks-0.8.0.beta1 | spec/unit/yaks/resource/link_spec.rb |
yaks-0.8.0.alpha | spec/unit/yaks/resource/link_spec.rb |