Sha256: 73c9613c895cbd3f81898bac3e894c699bd89e8f69abf22ecae6b31d9a3c1143

Contents?: true

Size: 337 Bytes

Versions: 7

Compression:

Stored size: 337 Bytes

Contents

require File.dirname(__FILE__) + '/../spec_helper'

describe CouchTomato::View::CustomViews do
  
  class MyViewSpec; end
  class ModelWithView
    include CouchTomato::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

7 entries across 7 versions & 1 rubygems

Version Path
couch_tomato-0.2.0 spec/unit/customs_views_spec.rb
couch_tomato-0.1.5 spec/unit/customs_views_spec.rb
couch_tomato-0.1.4 spec/unit/customs_views_spec.rb
couch_tomato-0.1.3 spec/unit/customs_views_spec.rb
couch_tomato-0.1.2 spec/unit/customs_views_spec.rb
couch_tomato-0.1.1 spec/unit/customs_views_spec.rb
couch_tomato-0.1.0 spec/unit/customs_views_spec.rb