Permalink
Browse files

AddCardBehaviour

  • Loading branch information...
1 parent 7b3ac8e commit 7c698d89cc0ecffa511b8001b573faaccf96abbd @calebthompson committed Jul 4, 2012
@@ -1,4 +1,5 @@
require_relative "./behaviours/card_behaviour"
+require_relative "./behaviours/add_cards_behaviour"
module Demesne::Behaviours
end
@@ -0,0 +1,5 @@
+module Demesne::Behaviours
+ module AddCardsBehaviour
+ include CardBehaviour
+ end
+end
@@ -0,0 +1,12 @@
+require 'spec_helper'
+
+describe Demesne::Behaviours::AddCardsBehaviour do
+ before do
+ @test_card = class TestCard
+ include Demesne::Behaviours::AddCardsBehaviour
+ end
+ end
+
+ subject { @test_card }
+ it { should include Demesne::Behaviours::CardBehaviour }
+end

0 comments on commit 7c698d8

Please sign in to comment.