spec/unit/web_spec.rb in ProMotion-1.1.2 vs spec/unit/web_spec.rb in ProMotion-1.2.0
- old
+ new
@@ -20,18 +20,18 @@
end
it "should get the current url" do
@webscreen.open_url(NSURL.URLWithString('http://mixi.jp/'))
- wait_for_change @webscreen, 'load_finished' do
+ wait_for_change @webscreen, 'is_load_finished' do
@webscreen.current_url.should == 'http://mixi.jp/'
end
end
it "should open web page by url string" do
@webscreen.open_url('http://mixi.jp/')
- wait_for_change @webscreen, 'load_finished' do
+ wait_for_change @webscreen, 'is_load_finished' do
@webscreen.html.should =~ /mixi/
end
end
it "should called on_request hook" do
@@ -74,11 +74,11 @@
request.URL.absoluteString.should == 'webbridge://method'
end
wait 0.3 do
# it should not load request when return false in on_request
- !!(@webscreen.load_finished.should) == false
+ !!(@webscreen.is_load_finished.should) == false
end
end
end
describe "when load static html file" do
@@ -95,11 +95,11 @@
it "should have a UIWebView as the primary view" do
@webscreen.web.class.should == UIWebView
end
it "should load the about html page" do
- wait_for_change @webscreen, 'load_finished' do
- @webscreen.load_finished.should == true
+ wait_for_change @webscreen, 'is_load_finished' do
+ @webscreen.is_load_finished.should == true
end
end
end
end