Sha256: 0abd23f9769c52520e4aee4e61bfb9f0355cd75101e8ceee647242bfbcf498e5

Contents?: true

Size: 662 Bytes

Versions: 1

Compression:

Stored size: 662 Bytes

Contents

require 'spec_helper'

describe NexusCli::CustomMetadataActions do
  let(:custom_metadata_actions) { injected_module.new }
  let(:injected_module) do
    Class.new {
      include NexusCli::CustomMetadataActions
    }
  end
  let(:document) { REXML::Document.new(File.read(fixtures_path.join('metadata_search.xml'))) }

  describe "::get_artifact_array" do
    subject { get_artifact_array }
    let(:get_artifact_array) { custom_metadata_actions.send(:get_artifact_array, document) }

    it "returns an array of strings" do
      get_artifact_array.should be_a(Array)
      get_artifact_array.each { |element| element.should be_a(String) }
    end
  end  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
nexus_cli-4.0.0.beta1 spec/unit/nexus_cli/mixins/pro/custom_metadata_actions_spec.rb