Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
13 lines (9 sloc) 422 Bytes
require 'rspec'
describe 'Infinity string generator' do
it 'an array of string based integers from 1 to 10 when 10 is the method argument' do
expect(string_infinity_generator 10).to eq(["1", "2", "3", "4", "5", "6", "7", "8", "9", "10"])
end
it 'an array of string based integers from 1 to 5 when 5 is the method argument' do
expect(string_infinity_generator 5).to eq(["1", "2", "3", "4", "5"])
end
end