Sha256: 376dc8e20877b50c4b4229d00a0eb1785f8c1e5bcb9c3edaf3e13cf56fb5b494

Contents?: true

Size: 516 Bytes

Versions: 12

Compression:

Stored size: 516 Bytes

Contents

RSpec.describe 'assorted sanity checks' do
  let(:resource_methods)            { Yaks::Resource.public_instance_methods.sort }
  let(:collection_resource_methods) { Yaks::CollectionResource.public_instance_methods.sort }
  let(:null_resource_methods)       { Yaks::NullResource.public_instance_methods.sort }

  specify 'all resource classes should have the exact same public API' do
    expect(resource_methods).to eql null_resource_methods
    expect(resource_methods).to eql collection_resource_methods
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
yaks-0.13.0 spec/sanity_spec.rb
yaks-0.12.0 spec/sanity_spec.rb
yaks-0.11.0 spec/sanity_spec.rb
yaks-0.10.0 spec/sanity_spec.rb
yaks-0.9.0 spec/sanity_spec.rb
yaks-0.8.3 spec/sanity_spec.rb
yaks-0.8.2 spec/sanity_spec.rb
yaks-0.8.1 spec/sanity_spec.rb
yaks-0.8.0 spec/sanity_spec.rb
yaks-0.8.0.beta2 spec/sanity_spec.rb
yaks-0.8.0.beta1 spec/sanity_spec.rb
yaks-0.8.0.alpha spec/sanity_spec.rb