Skip to content

Commit

Permalink
Quiet down resource specs.
Browse files Browse the repository at this point in the history
  • Loading branch information
tpendragon committed Dec 1, 2018
1 parent 38b5fea commit 05ce74c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/valkyrie/specs/shared_specs/resource.rb
Expand Up @@ -121,8 +121,8 @@ class MyCustomResource < Valkyrie::Resource
it "can set values with string properties, but will throw a deprecation error" do
resource_klass.attribute :string_property

resource = resource_klass.new("string_property" => "bla")
expect { resource_klass.new("string_property" => "bla") }.to output(/\[DEPRECATION\]/).to_stderr
resource = nil
expect { resource = resource_klass.new("string_property" => "bla") }.to output(/\[DEPRECATION\]/).to_stderr

expect(resource.string_property).to eq ["bla"]
resource_klass.schema.delete(:string_property)
Expand Down

0 comments on commit 05ce74c

Please sign in to comment.