Sha256: 3d4e131f23cb9f7e03d3e7554400a42673e33f29dda5218a6ec047a02c062072

Contents?: true

Size: 868 Bytes

Versions: 7

Compression:

Stored size: 868 Bytes

Contents

require 'spec_helper'

describe Xcodeproj::Project::Object::PBXGroup do

  describe "groups_containing_forward_slash" do

    before(:all) do
      DUMMY_SYNX_TEST_PROJECT.send(:set_options, {})
    end

    after(:all) do
      DUMMY_SYNX_TEST_PROJECT["top group"].remove_from_project
    end

    it "should return all child and grandchild groups containing forward slash" do

      top_group = DUMMY_SYNX_TEST_PROJECT.main_group.new_group("top group")

      child_1 = top_group.new_group("have / slash")
      child_1_1 = child_1.new_group("1 no slash")
      child_1_2 = child_1.new_group("1 / slash")

      child_2 = top_group.new_group("no slash")
      child_2_1 = child_2.new_group("2 no slash")
      child_2_2 = child_2.new_group("2 / slash")

      expect(top_group.groups_containing_forward_slash).to eq([child_1, child_1_2, child_2_2])
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
synx-0.2.1 spec/synx/xcodeproj_ext/project/object/pbx_group_spec.rb
synx-0.2.0 spec/synx/xcodeproj_ext/project/object/pbx_group_spec.rb
synx-0.1.1 spec/synx/xcodeproj_ext/project/object/pbx_group_spec.rb
synx-0.1.0 spec/synx/xcodeproj_ext/project/object/pbx_group_spec.rb
synx-0.0.61 spec/synx/xcodeproj_ext/project/object/pbx_group_spec.rb
synx-0.0.54 spec/synx/xcodeproj_ext/project/object/pbx_group_spec.rb
synx-0.0.53 spec/synx/xcodeproj_ext/project/object/pbx_group_spec.rb