Sha256: 5a0a9f4b33bd0360c83665d106ebd06305973b7289be9592442d31fdedf1d457

Contents?: true

Size: 337 Bytes

Versions: 28

Compression:

Stored size: 337 Bytes

Contents

require File.dirname(__FILE__) + '/../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

28 entries across 28 versions & 4 rubygems

Version Path
couch_potato-0.2.19 spec/unit/customs_views_spec.rb
couch_potato-0.2.18 spec/unit/customs_views_spec.rb
couch_potato-0.2.17 spec/unit/customs_views_spec.rb
couch_potato-0.2.16 spec/unit/customs_views_spec.rb
couch_potato-0.2.15 spec/unit/customs_views_spec.rb
couch_potato-0.2.14 spec/unit/customs_views_spec.rb
couch_potato-0.2.13 spec/unit/customs_views_spec.rb
couch_potato-0.2.12 spec/unit/customs_views_spec.rb