Skip to content

Commit

Permalink
AddCardBehaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
calebhearth committed Jul 4, 2012
1 parent 7b3ac8e commit 7c698d8
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/demesne/behaviours.rb
@@ -1,4 +1,5 @@
require_relative "./behaviours/card_behaviour"
require_relative "./behaviours/add_cards_behaviour"

module Demesne::Behaviours
end
5 changes: 5 additions & 0 deletions lib/demesne/behaviours/add_cards_behaviour.rb
@@ -0,0 +1,5 @@
module Demesne::Behaviours
module AddCardsBehaviour
include CardBehaviour
end
end
12 changes: 12 additions & 0 deletions 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

0 comments on commit 7c698d8

Please sign in to comment.