spec/unit/batch_actions/resource_spec.rb in activeadmin-1.0.0.pre2 vs spec/unit/batch_actions/resource_spec.rb in activeadmin-1.0.0.pre3
- old
+ new
@@ -10,11 +10,11 @@
describe "default action" do
it "should have the default action by default" do
expect(resource.batch_actions.size).to eq 1
- expect(resource.batch_actions.first.sym == :destroy).to be_truthy
+ expect(resource.batch_actions.first.sym == :destroy).to eq true
end
end
describe "adding a new batch action" do
@@ -33,10 +33,10 @@
it "should store an instance of BatchAction" do
expect(resource.batch_actions.first).to be_an_instance_of(ActiveAdmin::BatchAction)
end
it "should store the block in the batch action" do
- expect(resource.batch_actions.first.block).to_not be_nil
+ expect(resource.batch_actions.first.block).to_not eq nil
end
end
describe "removing batch action" do