Skip to content

Instantly share code, notes, and snippets.

@antaflos
Created March 21, 2014 16:18
Show Gist options
  • Save antaflos/9689832 to your computer and use it in GitHub Desktop.
Save antaflos/9689832 to your computer and use it in GitHub Desktop.
how to test for the default value of [] for `some_array_parameter`?
...
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