Sha256: 8c339b55d39c57900c3e0a4f00cd8aa5739981b92b447ca8412fb496f20af542

Contents?: true

Size: 401 Bytes

Versions: 28

Compression:

Stored size: 401 Bytes

Contents

require "spec_helper"

describe ORS::Commands::Base do

  context ".run" do

    it "should instantiate the command and call #execute on it" do
      klass = mock!.new { mock!.execute.subject }.subject
      ORS::Commands::Base.run klass
    end

  end

  context "#run" do
    it "should call the class method" do
      mock(ORS::Commands::Base).run("Foo")
      subject.run "Foo"
    end
  end

end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
ors-0.2.10 spec/ors/commands/base_spec.rb
ors-0.2.9 spec/ors/commands/base_spec.rb
ors-0.2.8 spec/ors/commands/base_spec.rb
ors-0.2.7 spec/ors/commands/base_spec.rb
ors-0.2.6 spec/ors/commands/base_spec.rb
ors-0.2.5 spec/ors/commands/base_spec.rb
ors-0.2.4 spec/ors/commands/base_spec.rb
ors-0.2.3 spec/ors/commands/base_spec.rb
ors-0.2.2 spec/ors/commands/base_spec.rb
ors-0.2.1 spec/ors/commands/base_spec.rb
ors-0.2.0 spec/ors/commands/base_spec.rb
ors-0.1.8 spec/ors/commands/base_spec.rb
ors-0.1.7 spec/ors/commands/base_spec.rb
ors-0.1.5 spec/ors/commands/base_spec.rb
ors-0.1.4 spec/ors/commands/base_spec.rb
ors-0.1.3 spec/ors/commands/base_spec.rb
ors-0.1.2 spec/ors/commands/base_spec.rb
ors-0.1.1 spec/ors/commands/base_spec.rb
ors-0.1.0 spec/ors/commands/base_spec.rb
ors-0.0.9 spec/ors/commands/base_spec.rb