test/runner_test.rb in ripl-0.6.1 vs test/runner_test.rb in ripl-0.6.2

- old
+ new

@@ -65,16 +65,16 @@ end it "rescues and prints SyntaxError" do mock(Runner).load(anything) { raise SyntaxError } mock_shell - capture_stderr { Runner.run([]) }.should =~ %r{^ripl: Error while loading ~/.riplrc:\nSyntaxError:} + capture_stderr { Runner.run([]) }.should =~ %r{^ripl: Error while loading .*.riplrc:\nSyntaxError:} end it "rescues and prints LoadError" do mock(Runner).load(anything) { raise LoadError } mock_shell - capture_stderr { Runner.run([]) }.should =~ %r{^ripl: Error while loading ~/.riplrc:\nLoadError:} + capture_stderr { Runner.run([]) }.should =~ %r{^ripl: Error while loading .*.riplrc:\nLoadError:} end end describe "with subcommand" do def mock_exec(*args)