lib/lopata/scenario.rb in lopata-0.1.17 vs lib/lopata/scenario.rb in lopata-0.1.18
- old
+ new
@@ -13,10 +13,18 @@
# @private
def initialize(execution)
@execution = execution
end
+ # Provide a human-readable representation of this class
+ def inspect
+ "#<#{self.class.name} #{execution.title.inspect}>"
+ end
+ alias to_s inspect
+
+
+
# Marks current step as pending
# @example
# it 'pending step' do
# pending
# expect(1).to eq 2
@@ -62,9 +70,15 @@
@let_methods = {}
@status = :not_runned
@steps = []
@scenario = Lopata::Scenario.new(self)
end
+
+ # Provide a human-readable representation of this class
+ def inspect
+ "#<#{self.class.name} #{title.inspect}>"
+ end
+ alias to_s inspect
def run
@status = :running
sort_steps
world.notify_observers(:scenario_started, self)