spec/linner/helper_spec.rb in linner-0.7.3 vs spec/linner/helper_spec.rb in linner-0.8.0
- old
+ new
@@ -4,23 +4,23 @@
before(:each) do
@array = %w[app.js jquery.js bootstrap.css reset.css vendor.js]
end
it "won't change when before and after are empty array" do
- @array.order_by([]).should == @array
+ expect(@array.order_by([])).to eq @array
end
it "will change by before items" do
@array.order_by(["jquery.js", "vendor.js"])
- @array.should == %w[jquery.js vendor.js app.js bootstrap.css reset.css]
+ expect(@array).to eq %w[jquery.js vendor.js app.js bootstrap.css reset.css]
end
it "will change by after items" do
@array.order_by(["...", "reset.css", "bootstrap.css"])
- @array.should == %w[app.js jquery.js vendor.js reset.css bootstrap.css]
+ expect(@array).to eq %w[app.js jquery.js vendor.js reset.css bootstrap.css]
end
it "will change by before and after items" do
@array.order_by(["jquery.js", "vendor.js", "...", "reset.css", "bootstrap.css"])
- @array.should == %w[jquery.js vendor.js app.js reset.css bootstrap.css]
+ expect(@array).to eq %w[jquery.js vendor.js app.js reset.css bootstrap.css]
end
end