Sha256: 84ad75777b27e9ba232f52b86d786ceff7f31c6d1cf93f90e13031b80d25a69e

Contents?: true

Size: 835 Bytes

Versions: 1

Compression:

Stored size: 835 Bytes

Contents

require "helper"

describe Stringer::Processor do

  describe "creating the genstrings command" do

    it "should use sensible defaults if no options given" do
      Stringer::Processor.any_instance.stubs(:dir_path_for_dir_with_same_name_as_parent_dir).returns("path")
      processor = Stringer::Processor.new("nl")
      processor.stubs(:files).returns(["file_a"])
      processor.genstrings_command.must_equal("/usr/bin/genstrings -q -o path/nl.lproj file_a")
    end

    it "should use the supplied options" do
      processor = Stringer::Processor.new("nl", :files_folder => "files", :lproj_parent => "lproj_parent", :genstrings => "/opt/bin/genstrings")
      processor.stubs(:files).returns(["file_a"])
      processor.genstrings_command.must_equal("/opt/bin/genstrings -q -o lproj_parent/nl.lproj file_a")
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
stringer-0.0.1 specs/processor_spec.rb