spec/input_helpers_spec.rb in squib-0.1.0 vs spec/input_helpers_spec.rb in squib-0.2.0
- old
+ new
@@ -197,6 +197,23 @@
rows: 2
})
end
end
+ context '#faceify' do
+ it 'is false on left' do
+ opts = @deck.send(:faceify, {face: :left})
+ expect(opts).to eq({ face: false })
+ end
+
+ it 'is true on right' do
+ opts = @deck.send(:faceify, {face: 'Right'})
+ expect(opts).to eq({ face: true })
+ end
+
+ it 'is false on anything else' do
+ opts = @deck.send(:faceify, {face: 'flugelhorn'})
+ expect(opts).to eq({ face: false })
+ end
+ end
+
end