lib/lucid/interface_rb/rb_world.rb in lucid-0.2.1 vs lib/lucid/interface_rb/rb_world.rb in lucid-0.3.0
- old
+ new
@@ -97,18 +97,18 @@
def embed(file, mime_type, label='Screenshot')
@__lucid_runtime.embed(file, mime_type, label)
end
# Mark the matched step as pending.
- def pending(message = "TODO")
+ def pending(message = 'TODO')
if block_given?
begin
yield
rescue Exception
raise Pending.new(message)
end
- raise Pending.new("Expected pending '#{message}' to fail. No Error was raised. No longer pending?")
+ raise Pending.new("Expected pending '#{message}' to fail. No error was raised. No longer pending?")
else
raise Pending.new(message)
end
end
@@ -119,10 +119,9 @@
modules += included_modules
end
sprintf("#<%s:0x%x>", modules.join('+'), self.object_id)
end
- # see {#inspect}
def to_s
inspect
end
end
end