diff --git a/lib/project/ext/ui_view.rb b/lib/project/ext/ui_view.rb index da88d2c..b9601f9 100644 --- a/lib/project/ext/ui_view.rb +++ b/lib/project/ext/ui_view.rb @@ -86,8 +86,4 @@ class UIView def stylesheet=(value) rmq.stylesheet = value end - - def find(*args) - rmq(self).find(*args) - end end diff --git a/lib/project/ext/ui_view_controller.rb b/lib/project/ext/ui_view_controller.rb index b50d391..82248ca 100644 --- a/lib/project/ext/ui_view_controller.rb +++ b/lib/project/ext/ui_view_controller.rb @@ -51,10 +51,6 @@ class UIViewController rmq.stylesheet = value end - def find(*args) - rmq(self.view).find(*args) - end - def self.stylesheet(style_sheet_class) @rmq_style_sheet_class = style_sheet_class end diff --git a/spec/ext/ui_view_spec.rb b/spec/ext/ui_view_spec.rb index 6976de1..d00bbc8 100644 --- a/spec/ext/ui_view_spec.rb +++ b/spec/ext/ui_view_spec.rb @@ -225,12 +225,12 @@ describe 'UIView' do end it "should set use the proper context to find the children" do - @view.find(UIButton).count.should.equal(1) + find(@view).find(UIButton).count.should.equal(1) end it "should properly work with multiple arguments as well" do @view.append(UILabel).tag(:something) - @view.find(UIButton, :something).count.should.equal(2) + find(@view).find(UIButton, :something).count.should.equal(2) end end end