Sha256: 5a7f570ab18a8a6fbcf9e9f1ad1a060f2c1866747cfde1a1de62536fd015f347
Contents?: true
Size: 409 Bytes
Versions: 3
Compression:
Stored size: 409 Bytes
Contents
require 'spec_helper' describe Locomotive::Coal::Resource do let(:attributes) { { 'title' => 'Hello world' } } let(:resource) { described_class.new(attributes) } describe 'unknown attribute' do subject { resource.name } it { expect { subject }.to raise_error } end describe 'existing attribute' do subject { resource.title } it { is_expected.to eq 'Hello world' } end end
Version data entries
3 entries across 3 versions & 1 rubygems