spec/input_faker.rb in shelly-0.4.26 vs spec/input_faker.rb in shelly-0.4.27

- old
+ new

@@ -8,9 +8,13 @@ # Uncomment the following line if you'd like to see the faked $stdin#gets # puts "(DEBUG) Faking #gets with: #{next_string}" next_string end + def noecho + @strings.shift + end + def self.with_fake_input(strings) $stdin = new(strings) yield ensure $stdin = STDIN