Sha256: 6a816a0754c3ba74a7145782d2d43146a27bc8634e7fdd0a66a47c47471e0e0b
Contents?: true
Size: 1.01 KB
Versions: 1
Compression:
Stored size: 1.01 KB
Contents
require 'bundler/setup' require 'draper' require 'action_controller' require 'action_controller/test_case' RSpec.configure do |config| config.expect_with(:rspec) {|c| c.syntax = :expect} config.order = :random config.mock_with :rspec do |mocks| mocks.yield_receiver_to_any_instance_implementation_blocks = true end end class Model; include Draper::Decoratable; end class Product < Model; end class SpecialProduct < Product; end class Other < Model; end class ProductDecorator < Draper::Decorator; end class ProductsDecorator < Draper::CollectionDecorator; end class ProductPresenter < Draper::Decorator; end class OtherDecorator < Draper::Decorator; end module Namespaced class Product < Model; end class ProductDecorator < Draper::Decorator; end class OtherDecorator < Draper::Decorator; end end # After each example, revert changes made to the class def protect_class(klass) before { stub_const klass.name, Class.new(klass) } end def protect_module(mod) before { stub_const mod.name, mod.dup } end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
draper-3.0.0.pre1 | spec/spec_helper.rb |