spec/lib/danica/function/name_spec.rb in danica-2.6.4 vs spec/lib/danica/function/name_spec.rb in danica-2.7.1

- old
+ new

@@ -1,11 +1,13 @@ require 'spec_helper' describe Danica::Function::Name do - let(:x) { Danica::Wrapper::Variable.new(name: :x, latex: '\mu', gnu: 'u')} + let(:x) { Danica::Wrapper::Variable.new(name: :x, latex: '\mu', gnuplot: 'u')} let(:subject) { described_class.new(name: :f, variables: [x]) } + it_behaves_like 'an object that respond to basic_methods' + describe '#to_tex' do it 'returns the name of the function with tex variables' do expect(subject.to_tex).to eq('f(\mu)') end @@ -16,10 +18,10 @@ expect(subject.to_tex).to eq('f(x)') end end end - describe '#to_tex' do + describe '#to_gnu' do it 'returns the name of the function with tex variables' do expect(subject.to_gnu).to eq('f(u)') end context 'when initializing variables from scratch' do