# How do you test a module that extends ActiveSupport::Concern?

**URL:** <https://www.ruby-forum.com/t/how-do-you-test-a-module-that-extends-activesupport-concern/207688>\
**Category:** Rails\
**Created:** [May 31, 2011, 8:35pm UTC](https://www.ruby-forum.com/t/how-do-you-test-a-module-that-extends-activesupport-concern/207688 "2011-05-31T20:35:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [May 31, 2011, 8:35pm UTC](https://www.ruby-forum.com/t/how-do-you-test-a-module-that-extends-activesupport-concern/207688/1 "2011-05-31T20:35:17Z")

</div>

I have a module that extends ActiveSupport::Concern. Here is the  
`included` block:

```
included do
  after_save :save_tags

  has_many :taggings, :as => :taggable
  has_many :tags, :through => :taggings
end

```

How can I stub out these calls? I have tried a few ways, but Ruby  
complains that these methods don’t exist when I try and test the  
module in isolation.

Thanks!
