test/if_test.rb in representable-2.4.0.rc3 vs test/if_test.rb in representable-2.4.0.rc4

- old
+ new

@@ -62,18 +62,18 @@ end describe "propagating user options to the block" do representer! do - property :name, :if => lambda { |opts| opts[:include_name] } + property :name, :if => lambda { |opts| opts[:user_options][:include_name] } end subject { OpenStruct.new(:name => "Outbound").extend(representer) } it "works without specifying options" do subject.to_hash.must_equal({}) end it "passes user options to block" do - subject.to_hash(:include_name => true).must_equal({"name" => "Outbound"}) + subject.to_hash(user_options: { include_name: true }).must_equal({"name" => "Outbound"}) end end end \ No newline at end of file