Sha256: 6d238156e443c01af81858331d9feab25b783dd808bedab473143f903d1b958e
Contents?: true
Size: 747 Bytes
Versions: 17
Compression:
Stored size: 747 Bytes
Contents
require "spec_helper" describe ORS::Command do subject { ORS::Command } context ".run" do it "should execute help when the command is help" do mock(ORS::Commands::Help).new { mock!.execute.subject } subject.run ["help"] end it "should execute help when no command is given" do mock(ORS::Commands::Help).new { mock!.execute.subject } subject.run [] end it "should execute help when an unknown command is given" do mock(ORS::Commands::Help).new { mock!.execute.subject } subject.run ["as0d9fja0s9djf"] end it "should show the version when given version as a command" do mock(ORS::Command).puts("ORS v#{ORS::VERSION}") subject.run ["version"] end end end
Version data entries
17 entries across 17 versions & 1 rubygems