Sha256: 26234ddf4177ad254bd1a76f7dafcb086e8d855674c2653041923455c35a4fca

Contents?: true

Size: 308 Bytes

Versions: 37

Compression:

Stored size: 308 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
    MyViewSpec.should_receive(:new)
    ModelWithView.all
  end
end

Version data entries

37 entries across 37 versions & 3 rubygems

Version Path
couch_potato-1.4.0 spec/unit/custom_views_spec.rb
couch_potato-1.3.0 spec/unit/custom_views_spec.rb
couch_potato-1.2.0 spec/unit/custom_views_spec.rb
couch_potato-1.1.4 spec/unit/custom_views_spec.rb
couch_potato-1.1.2 spec/unit/custom_views_spec.rb
couch_potato-1.1.1 spec/unit/custom_views_spec.rb
couch_potato-1.1.0 spec/unit/custom_views_spec.rb
couch_potato-1.0.1 spec/unit/custom_views_spec.rb
couch_potato-1.0.0 spec/unit/custom_views_spec.rb
couch_potato-0.7.1 spec/unit/custom_views_spec.rb
couch_potato-0.7.0 spec/unit/custom_views_spec.rb
couch_potato-0.7.0.pre.1 spec/unit/custom_views_spec.rb
couch_potato-0.6.0 spec/unit/custom_views_spec.rb
couch_potato-0.5.7 spec/unit/custom_views_spec.rb
couch_potato-rails2-0.5.10 spec/unit/custom_views_spec.rb
couch_potato-rails2-0.5.9 spec/unit/custom_views_spec.rb
couch_potato-rails2-0.5.8 spec/unit/custom_views_spec.rb
couch_potato-rails2-0.5.7 spec/unit/custom_views_spec.rb
couch_potato-rails2-0.5.6 spec/unit/custom_views_spec.rb
couch_potato-0.5.6 spec/unit/custom_views_spec.rb