Sha256: 1031fdad1d644e10d9276f4863de03efad42516de6a3ccc04f7b47568531a897

Contents?: true

Size: 312 Bytes

Versions: 17

Compression:

Stored size: 312 Bytes

Contents

require 'spec_helper'

describe CouchPotato::View::CustomViews do
  
  class MyViewSpec; end
  class ModelWithView
    include CouchPotato::Persistence
    view :all, :type => MyViewSpec
  end
  
  it "should use a custom viewspec class" do
    expect(MyViewSpec).to receive(:new)
    ModelWithView.all
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
couch_potato-1.18.0 spec/unit/custom_views_spec.rb
couch_potato-1.17.0 spec/unit/custom_views_spec.rb
couch_potato-1.16.0 spec/unit/custom_views_spec.rb
couch_potato-1.15.0 spec/unit/custom_views_spec.rb
couch_potato-1.14.0 spec/unit/custom_views_spec.rb
couch_potato-1.13.0 spec/unit/custom_views_spec.rb
couch_potato-1.12.1 spec/unit/custom_views_spec.rb
couch_potato-1.12.0 spec/unit/custom_views_spec.rb
couch_potato-1.11.0 spec/unit/custom_views_spec.rb
couch_potato-1.10.1 spec/unit/custom_views_spec.rb
couch_potato-1.10.0 spec/unit/custom_views_spec.rb
couch_potato-1.9.0 spec/unit/custom_views_spec.rb
couch_potato-1.7.1 spec/unit/custom_views_spec.rb
couch_potato-1.7.0 spec/unit/custom_views_spec.rb
couch_potato-1.6.5 spec/unit/custom_views_spec.rb
couch_potato-1.6.4 spec/unit/custom_views_spec.rb
couch_potato-1.6.3 spec/unit/custom_views_spec.rb