Skip to content

Commit

Permalink
Add seeds spec
Browse files Browse the repository at this point in the history
  • Loading branch information
dtaniwaki committed Apr 27, 2016
1 parent 0cfe380 commit f193d2c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions spec/misc/seed_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
require 'rails_helper'

RSpec.describe 'seed.rb' do
it 'succeeds' do
expect(User.count).to be 0
expect do
load Rails.root.join('db', 'seeds.rb')
end.not_to raise_error
expect(User.count).to be > 0
end
end

0 comments on commit f193d2c

Please sign in to comment.