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

Version Path
plist4r-1.2.2 spec/plist4r/commands_spec.rb
plist4r-1.2.1 spec/plist4r/commands_spec.rb
plist4r-1.1.6 spec/plist4r/commands_spec.rb
plist4r-1.1.5 spec/plist4r/commands_spec.rb
plist4r-1.1.4 spec/plist4r/commands_spec.rb
plist4r-1.1.3 spec/plist4r/commands_spec.rb
plist4r-1.1.2 spec/plist4r/commands_spec.rb
plist4r-1.1.1 spec/plist4r/commands_spec.rb
plist4r-1.1.0 spec/plist4r/commands_spec.rb
plist4r-1.0.1 spec/plist4r/commands_spec.rb
plist4r-1.0.0 spec/plist4r/commands_spec.rb