Sha256: 1144ce15abe604c1665280e23c670fec6645100b14f11c3d593240702eb19ab6
Contents?: true
Size: 1.32 KB
Versions: 5
Compression:
Stored size: 1.32 KB
Contents
require 'spec_helper' module Alf module Shell describe Main::ClassMethods 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 # Main::ClassMethods end # module Shell end # module Alf
Version data entries
5 entries across 5 versions & 1 rubygems