ensl.org/spec/models/forumer_spec.rb

27 lines
503 B
Ruby
Raw Normal View History

2015-08-20 17:11:29 +00:00
# == Schema Information
#
2015-08-20 18:36:01 +00:00
# Table name: forumers
2015-08-20 17:11:29 +00:00
#
2015-08-20 18:36:01 +00:00
# id :integer not null, primary key
# forum_id :integer
# group_id :integer
# access :integer
# created_at :datetime
# updated_at :datetime
2015-08-20 17:11:29 +00:00
#
require "spec_helper"
describe Forumer do
describe "create" do
let(:forumer) { build :forumer }
it "creates a new forumer" do
expect(forumer.valid?).to eq(true)
expect do
forumer.save!
end.to change(Forumer, :count).by(1)
end
end
end