spec/lib/danica/dsl_spec.rb in danica-2.2.1 vs spec/lib/danica/dsl_spec.rb in danica-2.3.0
- old
+ new
@@ -10,24 +10,27 @@
end
end
shared_context 'a class with mapped dsl' do
{
- sum: Danica::Sum,
- product: Danica::Product,
- division: Danica::Division,
- sin: Danica::Sin,
- cos: Danica::Cos,
- power: Danica::Power
+ addition: Danica::Operator::Addition,
+ sum: Danica::Operator::Addition,
+ multiplication: Danica::Operator::Multiplication,
+ product: Danica::Operator::Multiplication,
+ division: Danica::Operator::Division,
+ sin: Danica::Operator::Sin,
+ cos: Danica::Operator::Cos,
+ power: Danica::Operator::Power
}.each do |aliaz, clazz|
it_behaves_like 'a class with alias to a clazz', aliaz, clazz, 2, 3
end
{
- squared_root: Danica::SquaredRoot,
- exponential: Danica::Exponential,
- group: Danica::Group,
- negative: Danica::Negative,
- number: Danica::Number
+ squared_root: Danica::Operator::SquaredRoot,
+ exponential: Danica::Operator::Exponential,
+ group: Danica::Wrapper::Group,
+ negative: Danica::Wrapper::Negative,
+ number: Danica::Wrapper::Number,
+ plus_minus: Danica::Wrapper::PlusMinus
}.each do |aliaz, clazz|
it_behaves_like 'a class with alias to a clazz', aliaz, clazz, 9
end
end