Sha256: f7d5a1655b70aa2fc4f97e00af29126331a04ea542eedc5aa4285af59444c700

Contents?: true

Size: 336 Bytes

Versions: 2

Compression:

Stored size: 336 Bytes

Contents

require 'test_helper'

class FieldsTest < MiniTest::Spec
  describe "#new" do
    it "accepts list of properties" do
      fields = Reform::Contract::Fields.new([:name, :title])
      fields.name.must_equal  nil
      fields.title.must_equal nil

      fields.title= "Planet X"
      fields.title.must_equal "Planet X"
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
reform-2.0.0.beta2 test/fields_test.rb
reform-2.0.0.beta1 test/fields_test.rb