blue-shell 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/blue-shell/runner.rb +4 -0
- data/lib/blue-shell/version.rb +1 -1
- data/spec/runner_spec.rb +11 -1
- metadata +1 -1
data/lib/blue-shell/runner.rb
CHANGED
data/lib/blue-shell/version.rb
CHANGED
data/spec/runner_spec.rb
CHANGED
@@ -161,7 +161,17 @@ module BlueShell
|
|
161
161
|
BlueShell::Runner.run("ruby #{asset("input.rb")}") do |runner|
|
162
162
|
expect(runner.expect("started")).to be_true
|
163
163
|
runner.send_keys("foo")
|
164
|
-
expect(runner.expect("foo")).to be_true
|
164
|
+
expect(runner.expect("received foo")).to be_true
|
165
|
+
end
|
166
|
+
end
|
167
|
+
end
|
168
|
+
|
169
|
+
describe "#send_return" do
|
170
|
+
it "sends a return and expects more output afterwards" do
|
171
|
+
BlueShell::Runner.run("ruby #{asset("input.rb")}") do |runner|
|
172
|
+
expect(runner.expect("started")).to be_true
|
173
|
+
runner.send_return
|
174
|
+
expect(runner.expect("received ")).to be_true
|
165
175
|
end
|
166
176
|
end
|
167
177
|
end
|