Sha256: a0ee201c93fd743e1fe0acd793133272fa2915b449a3cc024b646e0ab468d123

Contents?: true

Size: 179 Bytes

Versions: 6

Compression:

Stored size: 179 Bytes

Contents

RSpec::Matchers.define :have_attr_accessor do |attribute_name|
  match do |subject|
    subject.respond_to?(attribute_name) && subject.respond_to?("#{attribute_name}=")
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
settings_js-0.3.0 spec/support/have_attr_accessor.rb
settings_js-0.2.0 spec/support/have_attr_accessor.rb
settings_js-0.1.2 spec/support/have_attr_accessor.rb
settings_js-0.1.1 spec/support/have_attr_accessor.rb
settings_js-0.1.0 spec/support/have_attr_accessor.rb
settings_js-0.0.1 spec/support/have_attr_accessor.rb