Sha256: ba9158dc2a5203c7d794e965d1bd21035d62723e6464f3b2d9be4adfebb20836
Contents?: true
Size: 501 Bytes
Versions: 1
Compression:
Stored size: 501 Bytes
Contents
require 'test_helper' module Mayl describe Repl do before do @repl = Mayl::Repl.new('some/path.yml') end it 'parses and executes commands' do @foo = stub @foo.expects(:execute) @baz = stub @baz.expects(:execute) @repl.expects(:gets).times(3).returns("foo bar\n", "baz lol\n", nil) @repl.parser.expects(:parse).with('foo bar').returns @foo @repl.parser.expects(:parse).with('baz lol').returns @baz @repl.start end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mayl-0.0.1 | test/mayl/repl_test.rb |