test/include_exclude_test.rb in representable-3.0.3 vs test/include_exclude_test.rb in representable-3.0.4
- old
+ new
@@ -15,11 +15,11 @@
property :id
end
end
end
- let (:song) { Song.new("Listless", Artist.new("7yearsbadluck", 1 )) }
- let (:decorator) { representer.new(song) }
+ let(:song) { Song.new("Listless", Artist.new("7yearsbadluck", 1 )) }
+ let(:decorator) { representer.new(song) }
describe "#from_hash" do
it "accepts :exclude option" do
decorator.from_hash({"title"=>"Don't Smile In Trouble", "artist"=>{"id"=>2}}, exclude: [:title])