Sha256: 35effaf3138384144e3d8e9b74bbc48faf5e5809e46b0f90dc4c595726f89c38
Contents?: true
Size: 620 Bytes
Versions: 11
Compression:
Stored size: 620 Bytes
Contents
require 'spec_helper' require "plist4r/commands" describe Plist4r::Commands, "#run" do before(:each) do Plist4r::Config[:args] = { :ruby_lib => true } @commands = Plist4r::Commands.new @commands.stub(:ruby_lib) end it "should follow the default calling path" do Plist4r::Commands::PriorityOrder.should_receive(:each).and_yield(:ruby_lib) Plist4r::Config[:args].should_receive(:[]).with(:ruby_lib).and_return(true) Plist4r::Config[:args].should_receive(:keys).and_return([:ruby_lib]) Plist4r::Config[:args].should_receive(:each).and_yield(:ruby_lib,true) @commands.run end end
Version data entries
11 entries across 11 versions & 1 rubygems