class Object
Public Instance Methods
options_matching?()
click to toggle source
# File lib/material/rspec/custom_matchers/have_material_component.rb, line 22 def options_matching? if @options.present? @options.keys.all? { |option| @component.options[option] == @options[option] } else true end end
test_subject()
click to toggle source
# File lib/material/rspec/custom_matchers/have_material_component.rb, line 46 def test_subject subject.is_a?(Class) ? subject : subject.class end