Sha256: 99b5c53fa28ee70e13b9929ff7acfbd83c0a33b306ae1969fa7ef2bfeb86002c

Contents?: true

Size: 1.33 KB

Versions: 3

Compression:

Stored size: 1.33 KB

Contents

require 'spec_helper'
module Alf
  module Shell
    describe Main, "class methods for doc" do

      specify "relational_operators" do
        Shell::Main.relational_operators.should_not be_empty
        Shell::Main.relational_operators.each do |cmd|
          cmd.should_not be_command
          cmd.should be_operator
          cmd.should respond_to(:run)
        end
      end

      specify "experimental_operators" do
        Shell::Main.experimental_operators.should_not be_empty
        Shell::Main.experimental_operators.each do |cmd|
          cmd.should_not be_command
          cmd.should be_operator
          cmd.should respond_to(:run)
        end
      end

      specify "non_relational_operators" do
        Shell::Main.non_relational_operators.should_not be_empty
        Shell::Main.non_relational_operators.each do |cmd|
          cmd.should_not be_command
          cmd.should be_operator
          cmd.should respond_to(:run)
        end
      end

      specify "other_non_relational_commands" do
        Shell::Main.other_non_relational_commands.should_not be_empty
        Shell::Main.other_non_relational_commands.each do |cmd|
          cmd.should be_command
          cmd.should_not be_operator
          cmd.should respond_to(:run)
        end
      end
        
    end # class methods for doc
  end # module Shell
end # module Alf

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
alf-shell-0.14.0 spec/unit/main/test_class_methods.rb
alf-shell-0.13.1 spec/unit/main/test_class_methods.rb
alf-shell-0.13.0 spec/unit/main/test_class_methods.rb