Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

AddCardBehaviour

  • Loading branch information...
commit 7c698d89cc0ecffa511b8001b573faaccf96abbd 1 parent 7b3ac8e
@calebthompson authored
View
1  lib/demesne/behaviours.rb
@@ -1,4 +1,5 @@
require_relative "./behaviours/card_behaviour"
+require_relative "./behaviours/add_cards_behaviour"
module Demesne::Behaviours
end
View
5 lib/demesne/behaviours/add_cards_behaviour.rb
@@ -0,0 +1,5 @@
+module Demesne::Behaviours
+ module AddCardsBehaviour
+ include CardBehaviour
+ end
+end
View
12 spec/behaviours/add_cards_behaviour_spec.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.