spec/rouge_spec.rb in rouge-lang-0.0.7 vs spec/rouge_spec.rb in rouge-lang-0.0.8

- old
+ new

@@ -16,10 +16,14 @@ it "should contain the defn macro" do lambda { @ns[:defn].should be_an_instance_of Rouge::Macro }.should_not raise_exception(Rouge::Context::BindingNotFoundError) end + + it "should contain special variables" do + @ns[:"*command-line-args*"].should be_an_instance_of Rouge::Var + end end describe "the user namespace" do before do @ns = Rouge[:user] @@ -43,10 +47,10 @@ r = {:passed => 0, :failed => [["exception"]]} end total = r[:passed] + r[:failed].length - message = + message = "#{total} example#{total == 1 ? "" : "s"}, " + "#{r[:failed].length} failure#{r[:failed].length == 1 ? "" : "s"}" if r[:failed].length > 0 STDOUT.puts Term::ANSIColor.red(message)