Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7b3ac8e
commit 7c698d8
Showing
3 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
require_relative "./behaviours/card_behaviour" | ||
require_relative "./behaviours/add_cards_behaviour" | ||
|
||
module Demesne::Behaviours | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module Demesne::Behaviours | ||
module AddCardsBehaviour | ||
include CardBehaviour | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |