Skip to content

Commit

Permalink
Merge pull request #9 from learn-co-curriculum/master-fix
Browse files Browse the repository at this point in the history
Add colors array as input for first test
  • Loading branch information
PeterBell committed Apr 25, 2016
2 parents 0c82599 + 5b83055 commit ace8590
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions spec/display_rainbow_spec.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
describe '#display_rainbow' do
it 'accepts one argument' do
colors = ['red', 'orange', 'yellow', 'green', 'blue', 'indigo', 'violet']

allow(self).to receive(:puts)

expect { display_rainbow([]) }.to_not raise_error(NoMethodError)
expect { display_rainbow([]) }.to_not raise_error(ArgumentError)
expect { display_rainbow(colors) }.to_not raise_error(NoMethodError)
expect { display_rainbow(colors) }.to_not raise_error(ArgumentError)
end

it 'prints out the colors of the rainbow correctly when passed in in order' do
Expand Down

0 comments on commit ace8590

Please sign in to comment.