Skip to content

Commit

Permalink
Reduce amount of deprecation output.
Browse files Browse the repository at this point in the history
  • Loading branch information
lacostej committed Nov 22, 2023
1 parent 2c92c45 commit 7ddd032
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion spaceship/spec/tunes/device_type_spec.rb
@@ -1,5 +1,9 @@
describe Spaceship::Tunes::DeviceType do
describe "type identifiers" do
before(:each) do
expect(Warning).to receive(:warn).with(/Spaceship::Tunes::DeviceType has been deprecated./)
end

it "should be checkable using singleton functions" do
expect(Spaceship::Tunes::DeviceType.exists?("iphone6")).to be_truthy
end
Expand Down Expand Up @@ -38,8 +42,9 @@
'desktop'
]

types = Spaceship::Tunes::DeviceType.types
old_types.each do |identifier|
expect(Spaceship::Tunes::DeviceType.types).to include(identifier)
expect(types).to include(identifier)
end
end
end
Expand Down

0 comments on commit 7ddd032

Please sign in to comment.