Sha256: 33e63548e08ce41c71f45172ffafe88c7c55daae474af5170ae6779deacfe514
Contents?: true
Size: 1.08 KB
Versions: 8
Compression:
Stored size: 1.08 KB
Contents
class Redcar::REPL describe ClojureMirror do before(:all) do @mirror = ClojureMirror.new @changed_event = false @mirror.add_listener(:change) { @changed_event = true } end def wait_for_prompt while @mirror.read.nil? || @mirror.read[-3,3] != "=> " end end describe "before executing" do it "should exist" do @mirror.should be_exist end it "should have a title" do @mirror.title.should == "Clojure REPL" end it "should not be changed" do @mirror.should_not be_changed end end describe "after executing" do it "should exist" do @mirror.should be_exist end it "should have a title" do @mirror.title.should == "Clojure REPL" end it "should not be changed" do @mirror.should_not be_changed end it "should have a prompt" do wait_for_prompt @mirror.read.should == (<<-CLOJURE).chomp # Clojure REPL user=> CLOJURE end end end end
Version data entries
8 entries across 8 versions & 1 rubygems