spec/lib/link_spec.rb in wrap_it-0.2.0 vs spec/lib/link_spec.rb in wrap_it-1.0.0

- old
+ new

@@ -1,8 +1,8 @@ require 'spec_helper' -describe WrapIt::Link do +describe WrapIt::Link, type: :wrapped do it 'has `a` tag by default' do expect(successor.tag).to eq 'a' end it { expect(successor).to be_kind_of WrapIt::TextContainer } @@ -18,8 +18,8 @@ expect(successor('url') { 'text' }.href).to eq 'url' end it 'takes href from second string arg if no block given' do expect(successor('text', 'url').href).to eq 'url' - expect(successor.instance_variable_get(:@body)).to eq 'text' + expect(successor.body).to eq 'text' end end