spec/lib/hotcell/node/block_spec.rb in hotcell-0.1.0 vs spec/lib/hotcell/node/block_spec.rb in hotcell-0.2.0
- old
+ new
@@ -1,10 +1,10 @@
require 'spec_helper'
describe Hotcell::Block do
def method_missing method, *args, &block
- klass = Hotcell::Calculator::HANDLERS[method] ?
- Hotcell::Calculator : Hotcell::Node
+ klass = Hotcell::Expression::HANDLERS[method] ?
+ Hotcell::Expression : Hotcell::Node
instance = Hotcell::Assigner.new *args if method == :ASSIGN
instance = Hotcell::Summoner.new *args if method == :METHOD
klass = Hotcell::Arrayer if [:ARRAY, :PAIR].include?(method)
klass = Hotcell::Hasher if method == :HASH