Are you thinking that we should set up an alternate provider list with dupes in it to test just this one case, like this?

```
    it "creates only one provider object per settings" do
      provider_settings = {
        :cdn   => { :domain => 'example.com', :subdomain => 'cdn',   :enabled => true, :cdn => true  },
        :local => { :domain => 'example.com', :subdomain => 'local', :enabled => true, :cdn => false }
      }
      provider_settings[:default] = provider_settings[:cdn]
      provider_settings[:disabled] = provider_settings[:local]
      providers = AssetHostSelection::AssetProvider.build_all(provider_settings)
      assert_equal providers[:cdn], providers[:default]
      assert_equal providers[:local], providers[:disabled]
    end
```

Then we can restore the before block to just creating the two providers the rest of the tests need.

```
  before do
    provider_settings = {
      :cdn   => { :domain => 'example.com', :subdomain => 'cdn',   :enabled => true, :cdn => true  },
      :local => { :domain => 'example.com', :subdomain => 'local', :enabled => true, :cdn => false }
    }
    @providers = AssetHostSelection::AssetProvider.build_all(provider_settings)
    @cdn       = @providers[:cdn]
    @local     = @providers[:local]
  end
```