spec/cistern_spec.rb in cistern-0.6.0 vs spec/cistern_spec.rb in cistern-0.7.0

- old
+ new

@@ -24,35 +24,35 @@ end it "should use formatador" do Cistern.formatter = Cistern::Formatter::Formatador - Inspector.new(id: 1, name: "name").inspect.should == %q{ <Inspector + expect(Inspector.new(id: 1, name: "name").inspect).to eq(%q{ <Inspector id=1, name="name" - >} + >}) end end describe "Cistern::Collection" do it "should use formatador" do Cistern.formatter = Cistern::Formatter::Formatador - Inspectors.new.all.inspect.should == %q{ <Inspectors + expect(Inspectors.new.all.inspect).to eq(%q{ <Inspectors [ <Inspector id=1, name="2" >, <Inspector id=3, name="4" > ] - >} + >}) end it "should use awesome_print" do Cistern.formatter = Cistern::Formatter::AwesomePrint - Inspectors.new.all.inspect.should match(/Inspectors\s+{.*}$/m) # close enough + expect(Inspectors.new.all.inspect).to match(/Inspectors\s+{.*}$/m) # close enough end end end