Sha256: 6bc45e6d07763f332a8a6bece7b1f49d9575fdf944dd287f6d2672fcdffa9662

Contents?: true

Size: 539 Bytes

Versions: 10

Compression:

Stored size: 539 Bytes

Contents

require 'spec_helper'

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

10 entries across 10 versions & 1 rubygems

Version Path
yaks-0.7.7 spec/sanity_spec.rb
yaks-0.7.6 spec/sanity_spec.rb
yaks-0.7.5 spec/sanity_spec.rb
yaks-0.7.4 spec/sanity_spec.rb
yaks-0.7.3 spec/sanity_spec.rb
yaks-0.7.2 spec/sanity_spec.rb
yaks-0.7.1 spec/sanity_spec.rb
yaks-0.7.0 spec/sanity_spec.rb
yaks-0.6.2 spec/sanity_spec.rb
yaks-0.6.1 spec/sanity_spec.rb