spec/mathjax_spec.rb in softcover-1.0.beta16 vs spec/mathjax_spec.rb in softcover-1.0.beta17

- old
+ new

@@ -36,12 +36,12 @@ context '#config' do let(:polytex) { 'PolyTeX: "Poly{\\\\TeX}"' } let(:polytexnic) { 'PolyTeXnic: "Poly{\\\\TeX}nic"' } - let(:foo) { 'foo: "{x}"' } - let(:bar) { 'bar: ["\\\\textbf{#1}", 1]' } + let(:foo) { '"foo": "{x}"' } + let(:bar) { '"bar": ["\\\\textbf{#1}", 1]' } let(:config) { mathjax.config } it "should not raise an error" do expect { config }.not_to raise_error end @@ -50,11 +50,11 @@ end context '#escaped_config' do let(:polytex) { 'PolyTeX: "Poly{\\\\\\\\TeX}"' } let(:polytexnic) { 'PolyTeXnic: "Poly{\\\\\\\\TeX}nic"' } - let(:foo) { 'foo: "{x}"' } - let(:bar) { 'bar: ["\\\\\\\\textbf{#1}", 1]' } + let(:foo) { '"foo": "{x}"' } + let(:bar) { '"bar": ["\\\\\\\\textbf{#1}", 1]' } let(:config) { mathjax.escaped_config } it_should_behave_like "config" end end