Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

It's the machine we need in the script, not the mapper.

  • Loading branch information...
commit 434adbffd965f75de5b4685d060725fa789248a6 1 parent f69b26a
@francois authored
Showing with 4 additions and 5 deletions.
  1. +4 −4 lib/nestor/script.rb
  2. +0 −1  test/script_test.rb
View
8 lib/nestor/script.rb
@@ -1,9 +1,9 @@
module Nestor
class Script < Watchr::Script
- # Let the script have a reference to the mapper, to generate events.
- # The actual instance variable name is +@mapper+, not +@nestor_mapper+.
- def nestor_mapper=(mapper)
- @mapper = mapper
+ # Let's the script have a reference to the machine, to generate events.
+ # The actual instance variable name is +@machine+, not +@nestor_machine+.
+ def nestor_machine=(machine)
+ @machine = machine
end
end
end
View
1  test/script_test.rb
@@ -4,5 +4,4 @@
setup { Nestor::Script.new(Nestor::Mappers::Rails::Test::Unit.default_script_path) }
asserts("has a #nestor_machine= method") { topic }.respond_to(:nestor_machine=)
- asserts("has a #nestor_mapper= method") { topic }.respond_to(:nestor_mapper=)
end
Please sign in to comment.
Something went wrong with that request. Please try again.