spec/it/link_spec.rb in it-0.2.3 vs spec/it/link_spec.rb in it-0.2.4
- old
+ new
@@ -29,14 +29,14 @@
end
end
describe It::Link, '#tag_name' do
it "should always return a" do
- It::Link.new("http://www.rubyonrails.org/").tag_name.should == :a
+ expect(It::Link.new("http://www.rubyonrails.org/").tag_name).to eq(:a)
end
end
describe It::Link, '#process' do
it "should return a link with the options set and the content as label" do
- It::Link.new("http://www.rubyonrails.org", :target => "_blank").process("Rails").should == '<a href="http://www.rubyonrails.org" target="_blank">Rails</a>'
+ expect(It::Link.new("http://www.rubyonrails.org", :target => "_blank").process("Rails")).to eq('<a href="http://www.rubyonrails.org" target="_blank">Rails</a>')
end
-end
\ No newline at end of file
+end