Sha256: e119a449ec7405d91e23155cbaefe387ba725e56659d2a1be4ac1a60e52ce80f

Contents?: true

Size: 159 Bytes

Versions: 60

Compression:

Stored size: 159 Bytes

Contents

RSpec::Matchers.define :have_read_only_field do |attribute|

  match do |model|
    expect(model.read_only_fields.include?(attribute)).to be_truthy
  end

end

Version data entries

60 entries across 60 versions & 1 rubygems

Version Path
netsuite-0.7.6 spec/support/read_only_field_matcher.rb
netsuite-0.7.5 spec/support/read_only_field_matcher.rb
netsuite-0.7.4 spec/support/read_only_field_matcher.rb
netsuite-0.7.3 spec/support/read_only_field_matcher.rb
netsuite-0.7.2 spec/support/read_only_field_matcher.rb
netsuite-0.7.1 spec/support/read_only_field_matcher.rb
netsuite-0.7.0 spec/support/read_only_field_matcher.rb
netsuite-0.6.9 spec/support/read_only_field_matcher.rb
netsuite-0.6.8 spec/support/read_only_field_matcher.rb
netsuite-0.6.7 spec/support/read_only_field_matcher.rb
netsuite-0.6.6 spec/support/read_only_field_matcher.rb
netsuite-0.6.5 spec/support/read_only_field_matcher.rb
netsuite-0.6.4 spec/support/read_only_field_matcher.rb
netsuite-0.6.3 spec/support/read_only_field_matcher.rb
netsuite-0.6.2 spec/support/read_only_field_matcher.rb
netsuite-0.6.1 spec/support/read_only_field_matcher.rb
netsuite-0.6.0 spec/support/read_only_field_matcher.rb
netsuite-0.5.9 spec/support/read_only_field_matcher.rb
netsuite-0.5.8 spec/support/read_only_field_matcher.rb
netsuite-0.5.7 spec/support/read_only_field_matcher.rb