mirror of
https://github.com/zhigang1992/redpotion.git
synced 2026-06-12 17:18:50 +08:00
16 lines
424 B
Ruby
16 lines
424 B
Ruby
describe 'Object' do
|
|
before { @subject = Object.new }
|
|
|
|
it "should return the RMQ App when Object#app is called" do
|
|
@subject.app.should.equal(RubyMotionQuery::App)
|
|
end
|
|
|
|
it "should return the RMQ Device when Object#device is called" do
|
|
@subject.device.should.equal(RubyMotionQuery::Device)
|
|
end
|
|
|
|
it "find should be an alias for rmq" do
|
|
@subject.find.is_a?(RubyMotionQuery::RMQ).should.be.true
|
|
end
|
|
end
|