summaryrefslogtreecommitdiffstats
path: root/spec/spaces_spec.rb
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2023-11-08 22:18:42 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2023-11-08 22:18:42 +0100
commit7c0cd9e0cb6251b78793f92a41f7377988d3e5df (patch)
treea928bd3ba2517cc03e1a4738d3c629f956478419 /spec/spaces_spec.rb
parent44e9358965f31a6453fcb1cbaca6bcbb4756ba16 (diff)
downloadcolonial-twilight-7c0cd9e0cb6251b78793f92a41f7377988d3e5df.zip
colonial-twilight-7c0cd9e0cb6251b78793f92a41f7377988d3e5df.tar.gz
Spaces : strengthen #shift and #independent!
Diffstat (limited to 'spec/spaces_spec.rb')
-rw-r--r--spec/spaces_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/spaces_spec.rb b/spec/spaces_spec.rb
index d7af8e5..e1d75ca 100644
--- a/spec/spaces_spec.rb
+++ b/spec/spaces_spec.rb
@@ -94,14 +94,14 @@ describe ColonialTwilight::Sector do
end
it 'shift alignment toward oppose' do
- @s.shift :oppose
+ expect(@s.shift(:oppose)).to be :oppose
expect(@s.oppose?).to be true
expect(@s.neutral?).to be false
expect(@s.support?).to be false
end
it 'shift alignment toward support' do
- @s.shift :support
+ expect(@s.shift(:support)).to be :support
expect(@s.oppose?).to be false
expect(@s.neutral?).to be false
expect(@s.support?).to be true
@@ -163,7 +163,7 @@ describe ColonialTwilight::Country do
it 'independent' do
expect(@c.independent?).to be false
- @c.independent!
+ expect(@c.independent!).to be true
expect(@c.independent?).to be true
end
end