lib/hyper-spec/helpers.rb in hyper-spec-1.0.alpha1.7 vs lib/hyper-spec/helpers.rb in hyper-spec-1.0.alpha1.8

- old
+ new

@@ -80,10 +80,14 @@ # Execute the block both on the client and on the server. Useful # for mocking isomorphic classes such as ActiveRecord models. def isomorphic(&block) yield - before_mount(&block) + if page.instance_variable_get('@hyper_spec_mounted') + internal_evaluate_ruby(&block) + else + before_mount(&block) + end end # Allows options to the mount method to be specified globally def client_option(opts = {})