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
andrewtimberlake-couch_potato-0.2.8.1 spec/unit/customs_views_spec.rb
andrewtimberlake-couch_potato-0.2.8.2 spec/unit/customs_views_spec.rb
andrewtimberlake-couch_potato-0.2.8.3 spec/unit/customs_views_spec.rb
andrewtimberlake-couch_potato-0.2.8.4 spec/unit/customs_views_spec.rb
langalex-couch_potato-0.2.11 spec/unit/customs_views_spec.rb
langalex-couch_potato-0.2.12 spec/unit/customs_views_spec.rb
langalex-couch_potato-0.2.5 spec/unit/customs_views_spec.rb
langalex-couch_potato-0.2.6 spec/unit/customs_views_spec.rb
langalex-couch_potato-0.2.7 spec/unit/customs_views_spec.rb
langalex-couch_potato-0.2.8 spec/unit/customs_views_spec.rb
langalex-couch_potato-0.2.9 spec/unit/customs_views_spec.rb
thefool808-couch_potato-0.2.7 spec/unit/customs_views_spec.rb
couch_potato-0.2.27 spec/unit/customs_views_spec.rb
couch_potato-0.2.26 spec/unit/customs_views_spec.rb
couch_potato-0.2.25 spec/unit/customs_views_spec.rb
couch_potato-0.2.24 spec/unit/customs_views_spec.rb
couch_potato-0.2.23 spec/unit/customs_views_spec.rb
couch_potato-0.2.22 spec/unit/customs_views_spec.rb
couch_potato-0.2.21 spec/unit/customs_views_spec.rb
couch_potato-0.2.20 spec/unit/customs_views_spec.rb