Sha256: f721508ff7bb47a6cc07ae5c3034b27ffb2c4f71c783bc7db43b9360a5eb3d2d

Contents?: true

Size: 257 Bytes

Versions: 4

Compression:

Stored size: 257 Bytes

Contents

RSpec.shared_examples "a hashable element" do
  describe "#to_hash" do
    it 'should include required, value and error' do
      options.merge!(value: '', required: true)
      expect(subject.to_hash).to include(:required, :value, :error)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
hungryform-0.0.11 spec/elements/shared_examples/hashable_element.rb
hungryform-0.0.10 spec/elements/shared_examples/hashable_element.rb
hungryform-0.0.9 spec/elements/shared_examples/hashable_element.rb
hungryform-0.0.8 spec/elements/shared_examples/hashable_element.rb