RSpec Code Examples

 

 

Context::View
should set the context on creation
should use the widgets to add a view
should use the widgets to remove a view
Context::PageView
should close the context when the view is closed
Context::Gtk::PageView
should have a widget when initialized
should add widgets from another view when added
should remove widgets from another view when removed
should react to destroy signals
Context::Bridge
should reference classes in the namespace provided
Context::Publisher
should have a source
should be able to subscribe to a publisher
should be able to update streams that aren't subscribed to
should be able to subscribe multiple targets to a publisher
should be able to change the source
Context::Context
should not have a parent set on creation
should set the parent on entry
should add new views to the main view
should remove views on exit
should create the views on entry
should destroy the views on exit
should keep track if the context has been entered or not
Kernel
should have a unit test for require_all
Context::Gtk::App
should start the Gtk main loop when run
should quit the Gtk main loop when quit
Context::Gtk::Widget
should add and show the widget when add is called.
should remove the widget, reshow the container when removed is called.
should keep track of the main Window
Context::Gtk::App
should start the Gtk main loop when run
should quit the Gtk main loop when quit
Context::Gtk::Widget
should add and show the widget when add is called.
should remove the widget, reshow the container when removed is called.
should keep track of the main Window