Sha256: aaae4b17b4940c2e81725710fe5f1254de75d5561659448e20bad8329e008532
Contents?: true
Size: 681 Bytes
Versions: 5
Compression:
Stored size: 681 Bytes
Contents
require "spec_helper" describe Tane::Commands::Base do it "should include Tane::Helpers" do Tane::Commands::Base.include?(Tane::Helpers).should be_true end describe ".fire" do before :each do @opts = {:foo => "bar"} @args = ["foo", "bar"] end it "should process the arguments passed" do Tane::Commands::Base.should_receive(:process).with(@args) Tane::Commands::Base.fire(@opts, @args) end it "should set the options" do Tane::Commands::Base.should_receive(:process).with(@args) Tane::Commands::Base.fire(@opts, @args) Tane::Commands::Base.instance_variable_get("@opts").should == @opts end end end
Version data entries
5 entries across 5 versions & 1 rubygems