test/coercion_feature_test.rb in roar-1.1.1 vs test/coercion_feature_test.rb in roar-1.2.0
- old
+ new
@@ -6,10 +6,10 @@
describe "Coercion" do
class SongDecorator < Roar::Decorator
include Roar::JSON
include Roar::Coercion
- property :composed_at, :type => DateTime, :default => "May 12th, 2012"
+ property :composed_at, type: Types::JSON::DateTime, default: "May 12th, 2012"
end
class ImmigrantSong
attr_accessor :composed_at
def composed_at=(v) # in ruby 2.2, #label= is not there, all at sudden. what *is* that?