lib/screengem/factories/factory_creation_error.rb in screengem-0.3.0 vs lib/screengem/factories/factory_creation_error.rb in screengem-0.4.0

- old
+ new

@@ -2,17 +2,15 @@ module Factories # # Knows the behaviour for error creation primitives. # module FactoryCreationError - attr_reader :error_message - def initialize(error_message) @error_message = error_message end def execute - raise Screengem::ScreengemError, error_message + raise Screengem::ScreengemError, @error_message end end end end