spec/macros4cuke/use-sample-collection.rb in macros4cuke-0.5.14 vs spec/macros4cuke/use-sample-collection.rb in macros4cuke-0.5.15

- old
+ new

@@ -8,11 +8,11 @@ # Mix-in module. # Defines a set of methods that builds for testing purposes # a sample collection of macro-steps. module UseSampleCollection # Phrase of first macro-step in the collection. - SamplePhrase1 = 'enter my credentials as <userid>' + SamplePhrase1 = 'enter my credentials as <userid>'.freeze # Sub-steps of the first macro-step in the collection. SampleSubsteps1 = begin snippet = <<-SNIPPET Given I landed in the homepage @@ -24,11 +24,11 @@ snippet end # Phrase of second macro-step in the collection. - SamplePhrase2 = 'fill in the form with' + SamplePhrase2 = 'fill in the form with'.freeze # Sub-steps of the second macro-step in the collection. SampleSubsteps2 = begin snippet = <<-SNIPPET When I fill in "first_name" with "<firstname>" @@ -56,10 +56,10 @@ # Helper. Stuff the macro collection with sample steps. def fill_collection() coll = MacroCollection.instance - coll.clear # Start from scratch: zap the existing macro-steps + coll.clear # Start from scratch: zap the existing macro-steps coll.add_macro(SamplePhrase1, SampleSubsteps1, true) coll.add_macro(SamplePhrase2, SampleSubsteps2, true) end