spec/input_faker.rb in shelly-0.3.8 vs spec/input_faker.rb in shelly-0.4.0.pre
- old
+ new
@@ -1,7 +1,7 @@
class InputFaker
def initialize(strings)
- @strings = strings
+ @strings = Array(strings)
end
def gets
next_string = @strings.shift
# Uncomment the following line if you'd like to see the faked $stdin#gets