Created
March 21, 2014 16:18
-
-
Save antaflos/9689832 to your computer and use it in GitHub Desktop.
how to test for the default value of [] for `some_array_parameter`?
This file contains hidden or 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
... | |
describe '#some_array_parameter' do | |
it 'should default to []' do | |
# ??? | |
end | |
context 'the array parameter does something' do | |
let(:params) { { :some_array_parameter => [ 'foo', 'bar' ] } } | |
... | |
end | |
end | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment