diff --git a/spec/active_interaction/base_spec.rb b/spec/active_interaction/base_spec.rb index 92cbd5bd..3f916da3 100644 --- a/spec/active_interaction/base_spec.rb +++ b/spec/active_interaction/base_spec.rb @@ -2,15 +2,15 @@ require 'spec_helper' -class InteractionWithFilter < TestInteraction +InteractionWithFilter = Class.new(TestInteraction) do float :thing end -class InteractionWithDateFilter < TestInteraction +InteractionWithDateFilter = Class.new(TestInteraction) do date :thing end -class AddInteraction < TestInteraction +AddInteraction = Class.new(TestInteraction) do float :x, :y def execute @@ -18,7 +18,7 @@ def execute end end -class InterruptInteraction < TestInteraction +InterruptInteraction = Class.new(TestInteraction) do object :x, :y, class: Object, default: nil diff --git a/spec/active_interaction/concerns/active_recordable_spec.rb b/spec/active_interaction/concerns/active_recordable_spec.rb index 315d66e7..5117f638 100644 --- a/spec/active_interaction/concerns/active_recordable_spec.rb +++ b/spec/active_interaction/concerns/active_recordable_spec.rb @@ -2,7 +2,7 @@ require 'spec_helper' -class InteractionWithFloatFilter < TestInteraction +InteractionWithFloatFilter = Class.new(TestInteraction) do float :thing end diff --git a/spec/active_interaction/i18n_spec.rb b/spec/active_interaction/i18n_spec.rb index f24fca4c..ffc56ea5 100644 --- a/spec/active_interaction/i18n_spec.rb +++ b/spec/active_interaction/i18n_spec.rb @@ -12,7 +12,7 @@ end end -class I18nInteraction < TestInteraction +I18nInteraction = Class.new(TestInteraction) do hash :a do hash :x end diff --git a/spec/active_interaction/integration/array_interaction_spec.rb b/spec/active_interaction/integration/array_interaction_spec.rb index 06eade31..2179d0ae 100644 --- a/spec/active_interaction/integration/array_interaction_spec.rb +++ b/spec/active_interaction/integration/array_interaction_spec.rb @@ -2,7 +2,7 @@ require 'spec_helper' -class ArrayInteraction < TestInteraction +ArrayInteraction = Class.new(TestInteraction) do array :a do array end diff --git a/spec/active_interaction/integration/file_interaction_spec.rb b/spec/active_interaction/integration/file_interaction_spec.rb index 5441fa19..76e68a73 100644 --- a/spec/active_interaction/integration/file_interaction_spec.rb +++ b/spec/active_interaction/integration/file_interaction_spec.rb @@ -3,7 +3,7 @@ require 'spec_helper' require 'action_dispatch' -class FileInteraction < TestInteraction +FileInteraction = Class.new(TestInteraction) do file :a end diff --git a/spec/active_interaction/integration/hash_interaction_spec.rb b/spec/active_interaction/integration/hash_interaction_spec.rb index ffad81d3..a3008715 100644 --- a/spec/active_interaction/integration/hash_interaction_spec.rb +++ b/spec/active_interaction/integration/hash_interaction_spec.rb @@ -2,7 +2,7 @@ require 'spec_helper' -class HashInteraction < TestInteraction +HashInteraction = Class.new(TestInteraction) do hash :a do hash :x end diff --git a/spec/active_interaction/integration/interface_interaction_spec.rb b/spec/active_interaction/integration/interface_interaction_spec.rb index a8c3c6dc..fddf1b8c 100644 --- a/spec/active_interaction/integration/interface_interaction_spec.rb +++ b/spec/active_interaction/integration/interface_interaction_spec.rb @@ -4,7 +4,7 @@ require 'json' require 'yaml' -class InterfaceInteraction < TestInteraction +InterfaceInteraction = Class.new(TestInteraction) do interface :anything end diff --git a/spec/active_interaction/integration/object_interaction_spec.rb b/spec/active_interaction/integration/object_interaction_spec.rb index 9ac68fee..50ef3f71 100644 --- a/spec/active_interaction/integration/object_interaction_spec.rb +++ b/spec/active_interaction/integration/object_interaction_spec.rb @@ -2,7 +2,7 @@ require 'spec_helper' -class ObjectInteraction < TestInteraction +ObjectInteraction = Class.new(TestInteraction) do object :object end diff --git a/spec/active_interaction/integration/time_interaction_spec.rb b/spec/active_interaction/integration/time_interaction_spec.rb index 14e50c65..135864d1 100644 --- a/spec/active_interaction/integration/time_interaction_spec.rb +++ b/spec/active_interaction/integration/time_interaction_spec.rb @@ -25,7 +25,7 @@ def ==(other) end end -class TimeInteraction < TestInteraction +TimeInteraction = Class.new(TestInteraction) do time :a end