# Copyright 2000-2008 JetBrains s.r.o.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Created by IntelliJ IDEA.
#
# @author: Roman.Chernyatchik
# @date: 12.02.2008

require "spec"

describe "Simple test" do
  it "should pass" do
    true.should == true
  end
end

describe "Test Data" do
  describe "(pass Behaviour)" do
    it "should pass - should be - equal" do
      2.should == 2
    end

    it "should pass - should be - empty" do
      [].should be_empty
    end

    it "should pass - should raise StackOverflowError" do
      lambda {raise ArgumentError}.should raise_error(ArgumentError)
    end

    it "should pass - should have stdout output" do
      $stdout << "Some stdout data\n"

      2.should == 2
    end

    it "should pass - should have stderr output" do
      $stderr << "Some stderr data\n"

      2.should == 2
    end

    it "should pass - should have stderr and stdout output" do
      $stdout << "Some stdout data\n"
      $stderr << "Some stderr data\n"

      2.should == 2
    end
  end
end