Sha256: f71f8ad8e32d395296ac84705b2a66365b84a60061484983475a00b5aa8ebeb3
Contents?: true
Size: 720 Bytes
Versions: 2
Compression:
Stored size: 720 Bytes
Contents
require 'spec_helper' describe RemoteLink do let(:params) { { id: SecureRandom.uuid, url: 'http://www.wetransfer.com', meta: {title: 'wetransfer.com'}, type: 'link', } } describe '#initialize' do attributes = %i[id url type meta] attributes.each do |atttribute| it "raises an ArgumentError when #{atttribute} is missing" do params.delete(atttribute) expect { described_class.new(params) }.to raise_error ArgumentError, %r{#{atttribute}} end end end describe 'getters' do subject { described_class.new(params) } it 'responds to #type' do expect(subject.type).to eq 'link' end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
wetransfer-0.9.0.beta1 | spec/we_transfer_client/remote_link_spec.rb |
wetransfer-0.9.0.beta | spec/we_transfer_client/remote_link_spec.rb |