spec/ruco/application_spec.rb in ruco-0.1.12 vs spec/ruco/application_spec.rb in ruco-0.1.13
- old
+ new
@@ -197,36 +197,36 @@
write 'xabac'
type :"Ctrl+r", 'a', :enter
app.view.should include("Replace with:")
type 'd', :enter
app.view.should include("Replace=Enter")
- type 's', :enter # skip
+ type 's' # skip
app.view.should include("Replace=Enter")
- type 's', :enter # skip
+ type 's' # skip
app.view.should_not include("Replace=Enter")
editor_part(app.view).should == "xabac\n\n"
end
it "can replace all" do
write '_a_a_a_a'
type :"Ctrl+r", 'a', :enter
app.view.should include("Replace with:")
type 'd', :enter
app.view.should include("Replace=Enter")
- type 's', :enter # skip first
+ type 's' # skip first
app.view.should include("Replace=Enter")
- type 'a', :enter # all
+ type 'a' # all
app.view.should_not include("Replace=Enter")
editor_part(app.view).should == "_a_d_d_d\n\n"
end
it "breaks if neither s nor enter is entered" do
write 'xabac'
type :"Ctrl+r", 'a', :enter
app.view.should include("Replace with:")
type "d", :enter
app.view.should include("Replace=Enter")
- type 'x', :enter
+ type 'x' # stupid user
app.view.should_not include("Replace=Enter")
editor_part(app.view).should == "xabac\n\n"
end
it "reuses find" do