spec/partitioned/by_id_spec.rb in partitioned-1.3.4 vs spec/partitioned/by_id_spec.rb in partitioned-1.3.5
- old
+ new
@@ -39,52 +39,52 @@
let(:class_by_id) { ::Partitioned::ById }
describe "model is abstract class" do
it "returns true" do
- class_by_id.abstract_class.should be_true
+ expect(class_by_id.abstract_class).to be_truthy
end
end # model is abstract class
describe "#prefetch_primary_key?" do
context "is :id set as a primary_key" do
it "returns true" do
- class_by_id.prefetch_primary_key?.should be_true
+ expect(class_by_id.prefetch_primary_key?).to be_truthy
end
end # is :id set as a primary_key
end # #prefetch_primary_key?
describe "#partition_table_size" do
it "returns 10000000" do
- class_by_id.partition_table_size.should == 10000000
+ expect(class_by_id.partition_table_size).to eq(10000000)
end
end # #partition_table_size
describe "#partition_integer_field" do
it "returns :id" do
- class_by_id.partition_integer_field.should == :id
+ expect(class_by_id.partition_integer_field).to eq(:id)
end
end # #partition_integer_field
describe "partitioned block" do
context "checks if there is data in the indexes field" do
it "returns :id" do
- class_by_id.configurator_dsl.data.indexes.first.field.should == :id
+ expect(class_by_id.configurator_dsl.data.indexes.first.field).to eq(:id)
end
it "returns { :unique => true }" do
- class_by_id.configurator_dsl.data.indexes.first.options.should == { :unique => true }
+ expect(class_by_id.configurator_dsl.data.indexes.first.options).to eq({ :unique => true })
end
end # checks if there is data in the indexes field
end # partitioned block
\ No newline at end of file