spec/concerned_spec.rb in concerned-0.1.3 vs spec/concerned_spec.rb in concerned-0.1.4

- old
+ new

@@ -20,9 +20,20 @@ shared_concerns :associations include_shared_concerns :caching include_concerns :validations end +class FixtureUserFor + include_concerns :foo, for: 'fixture_user' +end + +describe "Concerned" do + describe "using :for" do + it 'should include Foo module' do + FixtureUserFor.new.should respond_to(:foo) + end + end +end describe "Concerned" do describe "no meta" do it 'should not have meta info' do FixtureUserNoMeta.should_not respond_to(:my_concerns)