test/operation_skill_test.rb in trailblazer-operation-0.0.9 vs test/operation_skill_test.rb in trailblazer-operation-0.0.10
- old
+ new
@@ -14,11 +14,11 @@
class OperationCompetenceTest < Minitest::Spec
# Operation#[]
# Operation#[]=
# arbitrary options can be saved via Op#[].
class Create < Trailblazer::Operation
- self.> :call
+ success :call
def call(*)
self["drink"] = "Little Creatures"
self["drink"]
end
@@ -35,11 +35,11 @@
# Operation::[]
# Operation::[]=
class Update < Trailblazer::Operation
- self.> :call
+ success :call
self["drink"] = "Beer"
def call(*)
self["drink"]
@@ -54,10 +54,10 @@
# runtime constructor options can override class-level.
it { Update.({}, "drink" => "Little Creatures")["drink"].must_equal "Little Creatures" }
# instance can override class-level
class Delete < Trailblazer::Operation
- self.> :call
+ success :call
self["drink"] = "Beer"
def call(*)
self["drink"] = "Little Creatures"