features/migration_specs.feature in rspec-sequel-0.0.1 vs features/migration_specs.feature in rspec-sequel-0.0.2
- old
+ new
@@ -7,15 +7,15 @@
"""ruby
require 'spec_helper'
describe 'db/migrations/001_create_users.rb' do
it "creates the users table" do
- db.table_exists?(:users).should be_false
+ expect(db.table_exists?(:users)).to be false
migrate! :up
- db.table_exists?(:users).should be_true
+ expect(db.table_exists?(:users)).to be true
migrate! :down
- db.table_exists?(:users).should be_false
+ expect(db.table_exists?(:users)).to be false
end
end
"""
When I run `rspec spec`
Then the example should pass
@@ -26,10 +26,10 @@
require 'spec_helper'
describe 'db/migrations/001_create_users.rb' do
it "creates the users table" do
migrate! :up
- db.table_exists?(:users).should be_true
+ expect(db.table_exists?(:users)).to be true
end
it "makes an id column in users table" do
migrate! :up
expect { db[:users].insert(id: 42) } .to_not raise_error