spec/it_spec.rb in it-0.2.3 vs spec/it_spec.rb in it-0.2.4

- old
+ new

@@ -3,18 +3,18 @@ require 'spec_helper' require 'it' describe It, '.it' do it "should translate inside the controller as well" do - I18n.backend.store_translations(:en, :test1 => "I'm containing a %{link:link to Rails} in the middle.") - It.it("test1", :link => It.link("http://www.rubyonrails.org")).should == 'I\'m containing a <a href="http://www.rubyonrails.org">link to Rails</a> in the middle.' + I18n.backend.store_translations(:en, :test1 => "I have a %{link:link to Rails} in the middle.") + expect(It.it("test1", :link => It.link("http://www.rubyonrails.org"))).to eq('I have a <a href="http://www.rubyonrails.org">link to Rails</a> in the middle.') end end describe It, '.link' do it "should return an It::Link object" do - It.link("https://www.github.com").class.should == It::Link + expect(It.link("https://www.github.com").class).to eq(It::Link) end it "should accept one param" do expect { It.link("http://www.rubyonrails.org/") }.not_to raise_error end @@ -28,11 +28,11 @@ end end describe It, '.tag' do it "should return an It::Tag object" do - It.tag(:b).class.should == It::Tag + expect(It.tag(:b).class).to eq(It::Tag) end it "should work with a param" do expect { It.tag(:b) }.not_to raise_error end @@ -46,10 +46,10 @@ end end describe It, '.plain' do it "should return an It::Plain object" do - It.plain.class.should == It::Plain + expect(It.plain.class).to eq(It::Plain) end it "should work without params" do expect { It.plain }.not_to raise_error end