spec/unit/web_spec.rb in ProMotion-2.2.0 vs spec/unit/web_spec.rb in ProMotion-2.2.1
- old
+ new
@@ -2,9 +2,14 @@
extend WebStub::SpecHelpers
before { disable_network_access! }
after { enable_network_access! }
+ it "should leave on_init available as a hook" do
+ webscreen = TestWebScreen.new()
+ webscreen.on_init_available?.should == true
+ end
+
describe "when open web page with http request" do
before do
class TestWebScreenWithHTTPRequest < TestWebScreen
attr_accessor :on_request, :on_request_args
def on_request(request, type)